Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Backup Script
I have a question on the Cold Backup Scripts. I was reading a book and
it showed how to use scripts to automate BACKUP. Here is a sample:
select 'cp' || file_name || '{$BACKUP_DIR}' from sys.dba_data_files; select 'cp' || name || '{$BACKUP_DIR}' from v$controlfile; select 'cp' || member || '{$BACKUP_DIR}' from v$logfile;spool off;
My question is with reference to line 6 (. oraenv) and Line 7
(sqlplus...)
What does Line 6 do? What is . oraenv used for?
What does SQLPLUS with '-s" option do?
I am a newbie and so please excuse my ignorance on this topic. Where can I find more startup scripts on Oracle DB?
Thanks! Received on Wed Aug 06 2003 - 14:04:25 CDT