Тёмный

Oracle Database 11gR2 Migration/Upgrade to 19c using Data Pump 

Ni TSOH
Подписаться 1,7 тыс.
Просмотров 8 тыс.
50% 1

Oracle Database 11gR2 migration/upgrade to 19c using Data Pump
Related Videos:
-------------------------
How to establish a BASIC SQL Developer connection to an Oracle Database
• How to establish a BAS...
Follow me:
----------
LinkedIn: / atsohmofor
Twitter: / bindag OR @Bindag
email: bobsukki@gmail.com
Telegram: NI TSOH
RU-vid: / @bobsukki OR NI TSOH
Related material:
---------------------------
select instance_name, status, version, host_name from v$instance;
--
SELECT value AS db_ncharset FROM nls_database_parameters WHERE parameter = 'NLS_NCHAR_CHARACTERSET';
--
--Examine data file storage structures
SELECT NAME FROM V$DATAFILE;
--Memory Type
--AMM vs ASMM
show parameter memory
--get info for tablespaces
SELECT TABLESPACE_NAME from DBA_TABLESPACES;
CREATE TABLESPACE "EXAMPLE" DATAFILE
'/u01/app/oracle/oradata/ORCL/example01.dbf' SIZE 104857600
AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M
NOLOGGING ONLINE PERMANENT BLOCKSIZE 8192
EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT
NOCOMPRESS SEGMENT SPACE MANAGEMENT AUTO;
--Compared list of tablespaces with thesame output from newly created database and create missing tablespace(s).
--DDL for creating tablespaces...use
SELECT dbms_metadata.get_ddl('TABLESPACE',tb.tablespace_name) from dba_tablespaces tb;
--Create data pump directory object
--Make datapump directory on file system '/u01/export'
--Create directory object
SELECT * FROM DBA_DIRECTORIES;
CREATE OR REPLACE DIRECTORY EXPDIR AS '/u01/export';
--Validation after migration...
SELECT * from DBA_USERS;-- where account_status='OPEN';
SELECT username, account_status, default_tablespace, password_versions from dba_users;
select username, account_status, default_tablespace, password_versions, oracle_maintained from dba_users
where oracle_maintained='Y';
SELECT distinct schema, other_schemas from dba_registry;-- [Oracle maintained users in 11g)
--Export all schemas except those maintained by ORACLE
select schema,other_schemas from dba_registry;
--During the import if you had users with 10G password versions, these accounts will be locked and expired, unless the SQLNET.ALLOWED_LOGON_VERSION_SERVER is set to 10 or 11
-- Object Counts
--Number of oracle schema objects and their sizes:[Preferred]
select obj.owner "Owner", obj_cnt "Objects", decode(seg_size, NULL, 0, seg_size) "size MB"
from (select owner, count(*) obj_cnt from dba_objects group by owner) obj
, (select owner, ceil(sum(bytes)/1024/1024) seg_size
from dba_segments group by owner) seg where obj.owner = seg.owner(+)
order by 3 desc ,2 desc, 1;
export command:
expdp \'/ as sysdba\'
directory=EXPDIR
full=y
dumpfile=fullorclexp.dmp
logfile=fullorclexp.log
exclude=statistics
exclude=schema:"IN (''SYS','SYSTEM','APEX_030200','CTXSYS','EXFSYS','MDSYS','OLAPSYS','ORDSYS','OWBSYS','SYSMAN','WMSYS','XDB','FLOWS_FILES','MDSYS','ORDDATA','ORDPLUGINS','SI_INFORMTN_SCHEMA','APPQOSSYS','DIP','ORACLE_OCM','OUTLN','ANONYMOUS','XS$NULL')"
import command:
impdp \'/ as sysdba\' directory=expdir full=y dumpfile=fullorclexp.dmp logfile=fullorclimp.log

Опубликовано:

 

8 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@abukanu1614
@abukanu1614 Год назад
You're absolutely one of the best I've ever watched.
@bobsukki
@bobsukki Месяц назад
Thank you! I appreciate
@SureshKumar-no3eo
@SureshKumar-no3eo Год назад
very informative, Hi Sir Your vedios are very good and helpful for us.
@OliverShey
@OliverShey 2 года назад
This is gold!!!! Thanks
@bobsukki
@bobsukki 2 года назад
Glad you enjoyed it!
@badscrew4023
@badscrew4023 4 месяца назад
Good stuff!
@bobsukki
@bobsukki Месяц назад
Thanks!
@lizbeseka152
@lizbeseka152 2 года назад
Super helpful!
@bobsukki
@bobsukki 2 года назад
Thank you 🙏🏽
@albertoguilberto8194
@albertoguilberto8194 2 года назад
Love your channel video 👍🏽
@bobsukki
@bobsukki 2 года назад
Thanks so much! 🙏🏽
@samamjgrake2291
@samamjgrake2291 2 года назад
This is really helpful thank you Ni TSOH. Please can you make a video on upgrading a CDB.
@bobsukki
@bobsukki 2 года назад
I am glad you liked it... I am working a few other things at the moment. I certainly could make a CBD upgrade video when time permits. Thank you 🙏
@habtamutamir4918
@habtamutamir4918 2 года назад
It's quite interesting. Would you please provide one video on cross platform transportable tablespace with incremental backup set to reduce downtime of the database on database migration.
@bobsukki
@bobsukki 2 года назад
I will see what I can do about that! Thank you
@jeanbaptiste323
@jeanbaptiste323 2 года назад
Good stuff grand frere. JB here.
@bobsukki
@bobsukki 2 года назад
Thank you JB 🙏🏽
@jeanbaptiste323
@jeanbaptiste323 2 года назад
Just subscribed as well.
@MA-lo4xk
@MA-lo4xk 2 года назад
As you are excluding most of the schemas , do we need full=y export? Why not just export(include) the application schema only (must smaller list) and thats it, instead of having a long list of excluded shemas? Your thoughts much appreciated. Thank you
@bobsukki
@bobsukki Год назад
You could do that too.
@MA-lo4xk
@MA-lo4xk 2 года назад
Great video thank you for sharing sir. Out of interest what about roles and privaleges or anything , will they be included the export/import? Secondly instead of creating a new dump directory can we not use the one already there? thank you
@bobsukki
@bobsukki Год назад
Yes, absolutely
@hasan6964
@hasan6964 2 года назад
Thanks alot, it was really helpful. one question though you exclude statistics and didn't import it?
@bobsukki
@bobsukki 2 года назад
Yes... particularly for data refreshes only. Excluding stats will improve speed of export as by defaut this is included. That said, your choice will be driven by your enviromens needs as sometimes if you exclude stat, you might find that you are missing some indexes.
@cookiedough3199
@cookiedough3199 2 года назад
Thank you so much for this very informative video Quick question, you mentioned in the video that you wouldn't want to replace the system and sys schema from 19c with that of 11g , so why did you not exclude sys and system from your export? looks like you included sys, system, sysman, dbsnmp etc... which are all Oracle-maintained. I'd like to know if I should exclude my sys and system users Thank you!
@bobsukki
@bobsukki 2 года назад
Great catch, I noticed I should have included sys and system schemas in the exclude schema clause of the parfile. Please add them to your parfile. I added them to the exclude clause in the video notes 👍🏾👍🏾
@suryaardi8400
@suryaardi8400 5 месяцев назад
Is role automatically created on target or will be created manually?
@MA-lo4xk
@MA-lo4xk 2 года назад
Should we be doing export and import as sysdba? I thought oracle does not recommend this?
@bobsukki
@bobsukki Год назад
Yes we can, it depends, especially when I am doing a Full=Y. Otherwise, use the SYSTEM user
@jawidtalash3645
@jawidtalash3645 2 года назад
Thanks alot for the wonderful video,I followed the same step and face with the below issue please guide what can be the reason. i have taken the backup from 11g database and restored it in 19c but after comparison there was 3gb data difference,what can be the issue please reply.
@bobsukki
@bobsukki 2 года назад
Try using this sql statement on both databases to compare and identify the schemas with different sizes... SELECT OWNER, SUM(BYTES)/1024/1024/1024 SIZE_IN_GB FROM DBA_SEGMENTS GROUP BY OWNER;
@jawidtalash3645
@jawidtalash3645 2 года назад
@@bobsukki Thanks alot Sir, now it shows the difference 300MB,I think it should be ok now.
@khaleemoozeer5224
@khaleemoozeer5224 2 года назад
Resourceful video. However I would like to know if i can use this video for migrating oracle11g grid infrastructure to 19C grid infrastructure. Please help.
@bobsukki
@bobsukki 2 года назад
I am glad you found it resourceful. Yes, you can use thesame methodology with an 11g to 19c RAC database migration scenario 👍🏾
@fabianalbertoloerasalas659
@fabianalbertoloerasalas659 2 года назад
is it just enough if I exclude just SYS and SYSTEM schemas?
@bobsukki
@bobsukki 2 года назад
Yes you can! 👌🏽
@Best_Stocks
@Best_Stocks 6 месяцев назад
Is this method feeasible for 7TB db?
@bobsukki
@bobsukki 6 месяцев назад
I would not recommend this method for large databases as this will require alot of time for the exp and imp processes. If you choose to, it will require alot of resources and parallelism
Далее
Oracle Database: ACTIVE Database DUPLICATION using RMAN
38:37
Oracle Database 19c REFRESH using RMAN and DATA PUMP
49:28
ОСКАР И ДЖОНИ БРОСИЛИ НАС 😭
01:00
Oracle Grid + RAC Upgrade from 12c to 19c using DBUA
43:54
Oracle Database Security Assessment
41:34
Просмотров 1,1 тыс.
Oracle Database 12c to 19c Upgrade Manually on Linux
51:52
Oracle Database: Oracle  Row Lock Contention
33:22
Просмотров 2,1 тыс.