Showing posts with label 19c. Show all posts
Showing posts with label 19c. Show all posts

Sunday, 29 September 2024

creating pluggable database 19c


-- CREATE pluggable DATABASE --


[oracle@testdbslvd01 ~]$ . oraenv

ORACLE_SID = [stgcont1] ? testcont1

[oracle@testdbslvd01 ~]$ sqlplus / as sysdba

SYS@ testcont1 SQL> create pluggable database TESTDEV admin user PDBADMIN identified by ********;


Pluggable database created.


SYS@ testcont1 SQL> alter pluggable database TESTDEV open instances=all;


Pluggable database altered.


SYS@ testcont1 SQL> alter session set container = TESTDEV;


Session altered.


SYS@ testcont1 SQL> show pdbs


    CON_ID CON_NAME                       OPEN MODE  RESTRICTED

---------- ------------------------------ ---------- ----------

        15 TESTDEV                         READ WRITE NO

SYS@ testcont1 SQL> exit



-- CREATE SERVICE NAME --


[oracle@testdbslvd01 ~]$ srvctl add service -d tevcont-s test_test_srv -pdb TESTDEV -r testcont1,testcont2 -m BASIC -e SELECT -z 180 -w 5

[oracle@testdbslvd01 ~]$ srvctl start service -s test_test_srv-d testcont

[oracle@testdbslvd01 ~]$ srvctl status service -s test_test_srv -d testcont

Service test_test_srv is running on instance(s) testcont1,testcont2

[oracle@testdbslvd01 ~]$



-- CREATE TABLESPACE & USER --

create tablespace USERS;

create tablespace TEST_TBS;



create user TEST_DEV identified by test_test1144;

grant connect to TEST_DEV;

grant resource to TEST_DEV;

grant unlimited tablespace TO TEST_DEV;

alter user TEST_DEV default tablespace TEST_TBS;

alter user TEST_DEV quota unlimited on TEST_TBS;



GRANT CREATE VIEW TO TEST_DEV;

GRANT CREATE TRIGGER TO TEST_DEV;



-- grant access rights to resolve lock issues

GRANT EXECUTE ON DBMS_LOCK TO TEST_DEV;


-- grant access rights to resolve XA related issues:

GRANT SELECT ON PENDING_TRANS$ TO TEST_DEV;

GRANT SELECT ON DBA_2PC_PENDING TO TEST_DEV;

GRANT SELECT ON DBA_PENDING_TRANSACTIONS TO TEST_DEV;

GRANT EXECUTE ON DBMS_XA TO TEST_DEV;


alter profile default LIMIT PASSWORD_LIFE_TIME UNLIMITED;

Tuesday, 3 August 2021

OUI-10166: The permission 0755 cannot be set for the file rootconfig.sh 19c grid upgrade from 12c


 

While starting the actual upgrade, If you are seeing the error. as

OUI-10166: The permissions 0755 cannot be set for the file $GRID_HOME/crs/config/rootconfig.sh. OUI-10175: The effective user ID does not match the owner of the file or the process is not the user user.

 SOLUTION:

Check the owner of the file. $GRID_HOME/crs/config/rootconfig.sh . If it is owned by root , then change it to oracle and rerun the gridsetup.sh script.

chown oracle:oinstall rootconfig.sh



PRVF-5311 : File “/tmp/InstallActions error:

If at pre-requisite stage this error is coming, then you can try below solution.

Do below changes to scp. (

# Rename the original scp. ( find where is the scp executable file present)

mv /usr/bin/scp /usr/bin/scp.orig

# Create a new file .

vi /usr/bin/scp

# Add the below line to the new created file .
/usr/bin/scp.orig -T $*

# Change the file permission to 555.

chmod 555 /usr/bin/scp


RETRY THE UPGRADE PROCESS .

###Once upgrade is done , you can revert to the original

mv /usr/bin/scp.orig /usr/bin/scp

Tuesday, 27 October 2020

19c administration for enabling flashback on

check if archive destination has enough space


sqlplus "/as sysdba"



SQL> alter system set db_recovery_file_dest_size=10G scope=both sid=’*’;

System altered.


SQL> alter system set db_recovery_file_dest=’+DATA_01’ scope=both sid=’*’;

System altered.


SQL> alter database flashback on;

Database altered.


restart the database;

SQL> select log_mode,flashback_on from v$database;

LOG_MODE FLASHBACK_ON
———— ——————
ARCHIVELOG YES


Best wishes

Featured post

Restircted session due to sync filed with ora-65177

Application is unable to connect the database due to restricted session. sql> show pdbs; SQL> show con_name CON_NAME -----------------...