
![[RSS Feed]](/img/feed-icon32x32_1.png)
Cleanup Oracle FRA
RMAN> DELETE ARCHIVELOG ALL; Or delete just expired logs:
RMAN>crosscheck archivelog all';
RMAN>delete noprompt expired archivelog all; Use only if you know what you're doing...
permlink: _.at: Cleanup Oracle FRA
Oracle Object Source
SELECT * FROM dba_source;
SELECT * FROM all_source;
permlink: _.at: Oracle Object Source
Failed Index
from dba_indexes
where index_type = 'DOMAIN'
and domidx_opstatus = 'FAILED';
permlink: _.at: Failed Index
Oracle Shutdown / Restart
sqlplus /nolog And use the following commands to shut an instance down:
SQL> connect system as sysdba;
SQL> shutdown immediate; Use 'shutdown abort;' in case there are hanging connections/processes, but keep in mind that this kills those processes (i.e. use at your own risk). Shutdown + Start:
sqlplus /nolog SQL> connect system as sysdba;
SQL> startup force;
permlink: _.at: Oracle Shutdown / Restart
Oracle: Slow connections
permlink: _.at: Oracle: Slow connections
Extend TEMP tablespace
permlink: _.at: Extend TEMP tablespace
Extend an Oracle tablespace
SELECT * FROM dba_data_files WHERE tablespace_name='tb_name';
permlink: _.at: Extend an Oracle tablespace
Create Schema / User manually in Oracle
DATABASENAME is the name of the containing database. -- Here 2 datafiles are used. Adjust as needed:
CREATE SMALLFILE TABLESPACE "TESTUSERTABLESPACE" DATAFILE '/oracle/oradata2/DATABASENAME/testuser.dbf' SIZE 300M REUSE, '/oracle/oradata3/DATABASENAME/testuser.dbf' SIZE 300M REUSE LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; CREATE USER testuser IDENTIFIED BY testpassword DEFAULT TABLESPACE TESTUSERTABLESPACE;
ALTER USER testuser QUOTA UNLIMITED ON TESTUSERTABLESPACE; GRANT CONNECT, CREATE SESSION, CREATE TABLE TO testuser;
GRANT select, insert, update, delete, alter ON testuser.tabellenname TO testuser;
GRANT select, alter ON testuser.tabellenname_id_seq TO testuser; -- extend if needed:
ALTER DATABASE DATAFILE '/oracle/oradata2/DATABASENAME/testuser.dbf' RESIZE 500M;
ALTER DATABASE DATAFILE '/oracle/oradata3/DATABASENAME/testuser.dbf' RESIZE 500M; -- or set auto-extend:
ALTER DATABASE DATAFILE '/oracle/oradata2/DATABASENAME/testuser.dbf' AUTOEXTEND ON;
ALTER DATABASE DATAFILE '/oracle/oradata3/DATABASENAME/testuser.dbf' AUTOEXTEND ON;
Look up details by index / constraint name
ORA-00603: ORACLE server session terminated by fatal error
ORA-00603: ORACLE server session terminated by fatal error
ORA-00600: internal error code, arguments: [4080], [1], [131], [], [], [], [], []
Optimizing massive DELETE operations
all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.