扩展表空间
Increasing the Size of a Tablespacehttp://docs.oracle.com/cd/E11882_01/server.112/e25494/tspaces007.htm#BABDFCAE You can increase the size of a tablespace by either increasing the size of a dat...
生成statspack 报告
安装 statspackSQL> create tablespace test_pace datafile '/ora10/base/oradata/tid002/test_pace01.dbf' size 250m extent management local autoallocate;Tablespace created.SQL> @spcreate.sql创建快照SQL...
trace文件跟踪sql语句
跟踪sql语句开启一个新sessionSQL> exec dbms_session.set_sql_trace(true);PL/SQL procedure successfully completed.SQL> insert into tab001 values (1000009,'a');1 row created.SQL> commit;Commit...
根据AWR报告中sql_id查看sql执行的时间段和对应的快照时间段
SQL> create table t01 as select * from dba_objects;Table created.手动创建快照SQL> exec DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();PL/SQL procedure successfully completed.生成AWR报告SQL> @awrrptCur...
操作系统认证连接远程数据库
How To Implement OS Authentication in Web Forms for a Remote Database Authentication? [ID 577787.1]Configuring an External Service to Authenticate Users and Passwordshttp://docs.oracle.com/cd/E11882_...
DB LINK 的创建和连接时出现的问题
SQL> select * from v$version;BANNER----------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - ProdSQL> show parameter global_namesNA...
Oracle Lifetime Support
ORACLE LIFETIME SUPPORT BROCHUREShttp://www.oracle.com/us/support/lifetime-support/lifetime-support-software-342730.html Oracle Lifetime Support Policy:Oracle Technology Productshttp://www.or...
sqlplus 输出格式的设置
set linesize 200 #每行最多显示200个字符,缺省为80set pagesize 0 #设置每页显示的行数,默认是24,设置成0表示不分页set numwidth 5 #设置number类型的长度,...
创建分区表,索引的logging_clause
参考:17 Managing Partitioned Tables and Indexeshttp://docs.oracle.com/cd/B19306_01/server.102/b14231/partiti.htmManaging Indexeshttp://docs.oracle.com/cd/B19306_01/server.102/b14231/indexes.htm#i...
清除alert log
1.手动删除log_××.xml,删除文件后oracle会自动创建一个新的log.xml文件。2.使用ADRCI 工具也可以删除alert log。 1.在OS中手动删除log_××.xml[oracle@dbserver alert]$ lltotal 4-rw-r----- 1 or...
有相同sql_id的sql语句
1.不同用户执行相同的sql语句 1)在同一个数据库中执行 'select * from tab01' [o...
缩小表空间(缩小datafile)
1.如何缩小datafileALTER DATABASE DATAFILE '<full path and name of the file>' RESIZE [K|M|G];用这个命令可以缩小datafile的size,从而缩小tablespace的size。2.如何确定resize的值通过DBA_FREE_SPACE视图可...