wget -P /home/oracle/myfiles http://satellite/oracle/cloningscripts/post_clone.sql
If the directory /home/oracle/mfiles is not present, it will be created.
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.
wget -P /home/oracle/myfiles http://satellite/oracle/cloningscripts/post_clone.sql
$ORACLE_HOME/rdbms/admin/utlsampl.sql
SET TERMOUT ON SET ECHO ONat the top, if you want to see the script output.
The SELECT ANY DICTIONARY privilege no longer permits access to security sensitive data dictionary tables DEFAULT_PWD$, ENC$, LINK$, USER$, USER_HISTORY$, and XS$VERIFIERS. This change increases the default security of the database by not allowing access to a subset of data dictionary tables through the SELECT ANY DICTIONARY privilege. |
rman target / nocatalog backup database plus archivelog; |
ssh testserver cd /u05 mkdir bup cd bup scp -r prodserver:/u05/flash_recovery_area/PRODDB01/2018_11_16/* . |
cd $ORACLE_HOME/dbs vi inittest1.ora Add the following: *.db_name='test1' *.db_unique_name='test1' *.audit_file_dest='/u01/oracle/admin/test1/adump' *.audit_trail='DB' *.compatible='12.2.0' *.control_files='/u02/oradata/test1/control01.ctl','/u04/fra/test1/control02.ctl' *.db_block_size=8192 *.db_file_name_convert='proddb01','test1' *.log_file_name_convert='proddb01','test1' *.db_recovery_file_dest='/u05/flash_recovery_area/test1' *.db_recovery_file_dest_size=1000G *.diagnostic_dest='/u01/oracle' *.nls_language='NORWEGIAN' *.nls_territory='NORWAY' *.open_cursors=300 *.optimizer_adaptive_plans=FALSE *.optimizer_dynamic_sampling=0 *.optimizer_mode='ALL_ROWS' *.pga_aggregate_target=7222M *.processes=1500 *.remote_login_passwordfile='EXCLUSIVE' *.sga_target=21696M *.shared_pool_size=2624M *.streams_pool_size=256M *.undo_tablespace='UNDOTBS1' *.diagnostic_dest=/u01/oracle |
sqlplus / as sysdba startup nomount pfile=inittest1.ora create spfile from pfile; |
shutdown abort startup nomount |
rman auxiliary / duplicate database to test1 backup location '/u05/fra/bup'; |
BEGIN DBMS_REDEFINITION.FINISH_REDEF_TABLE(uname=>'SCOTT', orig_table=>'EMP', int_table=>'EMP_INTERIM', dml_lock_timeout=>300); END; /
TRANLOGOPTIONS INTEGRATEDPARAMS( option, ...)
ADD EXTRACT MYEXT INTEGRATED TRANLOG, BEGIN NOW
ADD EXTRACT MYEXT, TRANLOG, BEGIN NOW
OGG-10144 Oracle GoldenGate Capture for Oracle, myext.prm: (myext.prm) line 3: Parameter [INTEGRATEDPARAMS] is not valid for this configuration. ERROR OGG-01668 Oracle GoldenGate Capture for Oracle, myext.prm: PROCESS ABENDING.
ADD EXTRACT MYEXT, TRANLOG, BEGIN NOW
ADD EXTRACT MYEXT INTEGRATED TRANLOG, BEGIN NOW