摘要:
SQL> create or replace directory dir_dt as '/home/oracle'; Directory created.SQL> grant read,write on directory dir_dt to scott; Grant succeeded. SQL* 阅读全文
摘要:
UNION用的比较多union all是直接连接,取到得是所有值,记录可能有重复 union 是取唯一值,记录没有重复 UNION 的语法如下:SQL 语句1 UNION SQL 语句2UNION ALL 的语法如下:SQL 语句1 UNION ALL SQL 语句2效率:UNION和UNION A 阅读全文
摘要:
使用tnsnames.ora SQL> grant create database link to scott; Grant succeeded. SQL> conn scott/tigerConnected. SQL> create database link lk connect to hr i 阅读全文
摘要:
查看数据库默认表空间SQL> select property_value from database_properties where property_name = 'DEFAULT_PERMANENT_TABLESPACE'; PROPERTY_VALUE USERS 查看用户所使用的表空间 S 阅读全文
摘要:
SQL> select instance_name,status,logins,active_state,database_status from v$instance; INSTANCE_NAME STATUS LOGINS ACTIVE_ST DATABASE_STATUS enmo1 OPEN 阅读全文
摘要:
SQL> select instance_name,status, logins from v$instance; INSTANCE_NAME STATUS LOGINS enmo1 OPEN ALLOWED SQL> alter system quiesce restricted; System 阅读全文
摘要:
修改数据库限制模式: SQL> select instance_name,status,logins from v$instance; INSTANCE_NAME STATUS LOGINS enmo1 OPEN ALLOWED SQL> alter system enable restricted 阅读全文