tar cvf myfile.tar *or put it in a different directory:
tar cvf $HOME/myfile.tar *To extract myfile.tar to the current directory
tar xvf myfile.tarTo a specific directory:
tar xvf myfile.tar -C mydir
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
tar cvf myfile.tar *or put it in a different directory:
tar cvf $HOME/myfile.tar *To extract myfile.tar to the current directory
tar xvf myfile.tarTo a specific directory:
tar xvf myfile.tar -C mydir
RMAN-03009: failure of backup command on c1 channel at 07/21/2015 12:13:15 ORA-17627: ORA-12577: Message 12577 not found; product=RDBMS; facility=ORA RMAN-12019: continuing other job steps, job failed will not be re-run
IBM AIX RISC System/6000 Error: 28: No space left on device
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 07/21/2015 10:06:15 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on c1 channel at 07/21/2015 10:06:15 ORA-17629: Cannot connect to the remote database server ORA-17627: ORA-12154: TNS:could not resolve the connect identifier specified ORA-17629: Cannot connect to the remote database server
BEGIN DBMS_AUTO_TASK_ADMIN.ENABLE( client_name => 'sql tuning advisor', operation => NULL, window_name => NULL); END; / To disable automatic SQL tuning, use the DISABLE procedure in the DBMS_AUTO_TASK_ADMIN package: BEGIN DBMS_AUTO_TASK_ADMIN.DISABLE( client_name => 'sql tuning advisor', operation => NULL, window_name => NULL); END; /
-- step 1: Create the Access Control List and its Privilege Definitions BEGIN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL ( acl => 'my_acl.xml', description => 'Limit the use of package utl_http til webservice', principal => 'SCOTT', is_grant => TRUE, privilege => 'connect'); END; / -- Step 2: Assign the Access Control List to One or More Network Hosts -- After you create the access control list, then you are ready to assign it to one or more network host computers. BEGIN DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL ( acl => 'my_acl.xml', host => '*'); END; /
BEGIN DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL ( acl => 'my_acl.xml', host => 'appserver1.mycompany.com', lower_port => 80, upper_port => 3999); END; /
Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 7.968 GB Processing object type SCHEMA_EXPORT/USER Processing object type SCHEMA_EXPORT/SYSTEM_GRANT Processing object type SCHEMA_EXPORT/ROLE_GRANT Processing object type SCHEMA_EXPORT/DEFAULT_ROLE Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE >>> DBMS_AW_EXP: BIN$DdyrY/cyAMLgU5/YLVaAbg==$0 not AW$
purge dba_recyclebin;and restart the export.
SELECT SUBSTR(FILE_NAME, 1,
INSTR(FILE_NAME, '/', -1, 1) -- Search for position of the first occurrence of the char '/', start at end of string
-1) "PATH" -- starting from the rightmost side of the string, search from position found in INSTR above, and work your way to position 1
FROM DBA_DATA_FILES
WHERE TABLESPACE_NAME = 'USERS'
AND ROWNUM < 2;