Sunday 24 July 2016

[INS-41112] Specified network interface doesnt maintain connectivity across cluster nodes


[INS-41112] Specified network interface doesnt maintain connectivity across cluster nodes

issue and solution 01:-

restart both node and excute below command..

[oracle@node02 grid]$ ./runcluvfy.sh comp nodecon -n node01,node02 -verbose

Verifying node connectivity

Checking node connectivity...

Checking hosts config file...
  Node Name                             Status
  ------------------------------------  ------------------------
  node02                                passed
  node01                                passed

Verification of the hosts config file successful


Interface information for node "node02"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.132.180 192.168.132.0   0.0.0.0         192.168.132.2   00:50:56:25:A2:E2 1500
 eth1   192.168.223.180 192.168.223.0   0.0.0.0         192.168.132.2   00:50:56:28:FE:F1 1500


Interface information for node "node01"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth1   192.168.223.182 192.168.223.0   0.0.0.0         192.168.132.2   00:50:56:35:72:E6 1500
 eth0   192.168.132.182 192.168.132.0   0.0.0.0         192.168.132.2   00:50:56:31:79:FD 1500


Check: Node connectivity of subnet "192.168.132.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02[192.168.132.180]         node01[192.168.132.182]         yes
Result: Node connectivity passed for subnet "192.168.132.0" with node(s) node02,node01


Check: TCP connectivity of subnet "192.168.132.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02:192.168.132.180          node01:192.168.132.182          passed
Result: TCP connectivity check passed for subnet "192.168.132.0"


Check: Node connectivity of subnet "192.168.223.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02[192.168.223.180]         node01[192.168.223.182]         yes
Result: Node connectivity passed for subnet "192.168.223.0" with node(s) node02,node01


Check: TCP connectivity of subnet "192.168.223.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02:192.168.223.180          node01:192.168.223.182          passed
Result: TCP connectivity check passed for subnet "192.168.223.0"


Interfaces found on subnet "192.168.132.0" that are likely candidates for VIP are:
node02 eth0:192.168.132.180
node01 eth0:192.168.132.182

Interfaces found on subnet "192.168.223.0" that are likely candidates for a private interconnect are:
node02 eth1:192.168.223.180
node01 eth1:192.168.223.182
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "192.168.132.0".
Subnet mask consistency check passed for subnet "192.168.223.0".
Subnet mask consistency check passed.

Result: Node connectivity check passed


Verification of node connectivity was successful.

issue and solution node2:-

check owner of 'CVU_11.2.0.3.0_oracle' location /tmp

[root@node01 tmp]# ls -ltr
total 56
drwx------ 2 root   root     16384 Jul 16 21:08 lost+found
drwxr-xr-x 3    502 oinstall  4096 Jul 24 21:26 OraInstall2016-07-24_09-24-01PM
drwxr-xr-x 3    502 oinstall  4096 Jul 24 21:33 CVU_11.2.0.3.0_oracle
-rwxr-xr-x 1 root   root      8551 Jul 24 21:47 cvuqdisk-1.0.9-1.rpm
drwxr-xr-x 3 oracle oinstall  4096 Jul 24 22:23 OraInstall2016-07-24_10-21-53PM
drwxr-xr-x 3 oracle oinstall  4096 Jul 24 22:42 OraInstall2016-07-24_10-40-33PM
srwxr-xr-x 1 root   root         0 Jul 24 22:51 mapping-root
drwx------ 2 root   root      4096 Jul 24 22:59 gconfd-root
drwxr-xr-x 3 oracle oinstall  4096 Jul 24 23:03 OraInstall2016-07-24_11-02-03PM

[root@node01 tmp]# chown -R oracle:oinstall OraInstall2016-07-24_09-24-01PM
[root@node01 tmp]# chown -R oracle:oinstall CVU_11.2.0.3.0_oracle

[oracle@node02 grid]$ ./runcluvfy.sh comp nodecon -n node01,node02 -verbose

Verifying node connectivity

Checking node connectivity...

Checking hosts config file...
  Node Name                             Status
  ------------------------------------  ------------------------
  node02                                passed
  node01                                passed

Verification of the hosts config file successful


Interface information for node "node02"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.132.180 192.168.132.0   0.0.0.0         192.168.132.2   00:50:56:25:A2:E2 1500
 eth1   192.168.223.180 192.168.223.0   0.0.0.0         192.168.132.2   00:50:56:28:FE:F1 1500


Interface information for node "node01"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth1   192.168.223.182 192.168.223.0   0.0.0.0         192.168.132.2   00:50:56:35:72:E6 1500
 eth0   192.168.132.182 192.168.132.0   0.0.0.0         192.168.132.2   00:50:56:31:79:FD 1500


Check: Node connectivity of subnet "192.168.132.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02[192.168.132.180]         node01[192.168.132.182]         yes
Result: Node connectivity passed for subnet "192.168.132.0" with node(s) node02,node01


Check: TCP connectivity of subnet "192.168.132.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02:192.168.132.180          node01:192.168.132.182          passed
Result: TCP connectivity check passed for subnet "192.168.132.0"


Check: Node connectivity of subnet "192.168.223.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02[192.168.223.180]         node01[192.168.223.182]         yes
Result: Node connectivity passed for subnet "192.168.223.0" with node(s) node02,node01


Check: TCP connectivity of subnet "192.168.223.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02:192.168.223.180          node01:192.168.223.182          passed
Result: TCP connectivity check passed for subnet "192.168.223.0"


Interfaces found on subnet "192.168.132.0" that are likely candidates for VIP are:
node02 eth0:192.168.132.180
node01 eth0:192.168.132.182

Interfaces found on subnet "192.168.223.0" that are likely candidates for a private interconnect are:
node02 eth1:192.168.223.180
node01 eth1:192.168.223.182
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "192.168.132.0".
Subnet mask consistency check passed for subnet "192.168.223.0".
Subnet mask consistency check passed.

Result: Node connectivity check passed


Verification of node connectivity was successful.

Friday 1 April 2016

Create duplicate(clone) database,Using Rman Duplicate command.

OS details of Both node:-

Linux stand.example.com 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Red Hat Enterprise Linux Server release 5.4 (Tikanga)

DB name:

SQL> select name from v$database;

NAME
---------
DB11G

Node1 hostname:

stand.example.com

Node2 hostname:

prim.example.com

step1)

create pfile for spfile for duplicate database.

SQL> create pfile from spfile;

File created.

step2)

move password file and pfile to target location.

[oracle@prim dbs]$ scp initDB11G.ora oracle@stand.example.com:/u01/app/oracle/product/11.2.0/db_1/dbs/
oracle@stand.example.com's password:
initDB11G.ora 100% 997 1.0KB/s 00:00

[oracle@prim dbs]$ scp orapwDB11G oracle@stand.example.com:/u01/app/oracle/product/11.2.0/db_1/dbs/
oracle@stand.example.com's password:
orapwDB11G 100% 1536 1.5KB/s 00:00
[oracle@prim dbs]$

step3)

Create directory structure, same as primory database.

$ mkdir -p /u01/app/oracle/oradata/DB11G
$ mkdir -p /u01/app/oracle/fast_recovery_area/DB11G
$ mkdir -p /u01/app/oracle/admin/DB11G/adump

step4)

Start duplicate (tareget) database in nomount.

[oracle@stand admin]$ export $ORACLE_SID=DB11G
[oracle@stand admin]$ echo $ORACLE_SID
DB11G
[oracle@stand admin]$ sqlplus

SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 1 21:50:36 2016
Copyright (c) 1982, 2011, Oracle. All rights reserved.

Enter user-name: /as sysdba

Connected to an idle instance.

SQL> startup nomount;

ORACLE instance started.
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes

SQL> exit

step5)

-->connect rman using target and auxilary command.

[oracle@stand admin]$ rman TARGET sys/Admin123@DB11G AUXILIARY sys/Admin123@TARGET_DB11G

---> run duplicate database command.

RMAN> DUPLICATE DATABASE TO DB11G
FROM ACTIVE DATABASE
SPFILE
NOFILENAMECHECK;

Starting Duplicate Db at 01-APR-16
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK
contents of Memory Script:
{
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfileDB11G.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileDB11G.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileDB11G.ora''";
}
executing Memory Script
Starting backup at 01-APR-16
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=17 device type=DISK
Finished backup at 01-APR-16
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileDB11G.ora''
contents of Memory Script:
{
sql clone "alter system set db_name =
''DB11G'' comment=
''duplicate'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
sql statement: alter system set db_name = ''DB11G'' comment= ''duplicate'' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes
contents of Memory Script:
{
sql clone "alter system set db_name =
''DB11G'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''DB11G'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format '/u01/app/oracle/oradata/DB11G/control01.ctl';
restore clone controlfile to '/u01/app/oracle/fast_recovery_area/DB11G/control02.ctl' from
'/u01/app/oracle/oradata/DB11G/control01.ctl';
alter clone database mount;
}
executing Memory Script
sql statement: alter system set db_name = ''DB11G'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''DB11G'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes
Starting backup at 01-APR-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying current control file
output file name=/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_DB11G.f tag=TAG20160401T215156 RECID=4 STAMP=908056317
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 01-APR-16
Starting restore at 01-APR-16
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=18 device type=DISK
channel ORA_AUX_DISK_1: copied control file copy
Finished restore at 01-APR-16
database mounted
RMAN-05538: WARNING: implicitly using DB_FILE_NAME_CONVERT
contents of Memory Script:
{
set newname for datafile 1 to
"/u01/app/oracle/oradata/DB11G/system01.dbf";
set newname for datafile 2 to
"/u01/app/oracle/oradata/DB11G/sysaux01.dbf";
set newname for datafile 3 to
"/u01/app/oracle/oradata/DB11G/undotbs01.dbf";
set newname for datafile 4 to
"/u01/app/oracle/oradata/DB11G/users01.dbf";
set newname for datafile 5 to
"/u01/app/oracle/oradata/DB11G/example01.dbf";
backup as copy reuse
datafile 1 auxiliary format
"/u01/app/oracle/oradata/DB11G/system01.dbf" datafile
2 auxiliary format
"/u01/app/oracle/oradata/DB11G/sysaux01.dbf" datafile
3 auxiliary format
"/u01/app/oracle/oradata/DB11G/undotbs01.dbf" datafile
4 auxiliary format
"/u01/app/oracle/oradata/DB11G/users01.dbf" datafile
5 auxiliary format
"/u01/app/oracle/oradata/DB11G/example01.dbf" ;
sql 'alter system archive log current';
}
executing Memory Script
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting backup at 01-APR-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/DB11G/system01.dbf
output file name=/u01/app/oracle/oradata/DB11G/system01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting datafile copy
input datafile file number=00002 name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf
output file name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting datafile copy
input datafile file number=00005 name=/u01/app/oracle/oradata/DB11G/example01.dbf
output file name=/u01/app/oracle/oradata/DB11G/example01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile file number=00003 name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf
output file name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004 name=/u01/app/oracle/oradata/DB11G/users01.dbf
output file name=/u01/app/oracle/oradata/DB11G/users01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 01-APR-16
sql statement: alter system archive log current
contents of Memory Script:
{
backup as copy reuse
archivelog like "/u01/Archive/1_78_907544441.dbf" auxiliary format
"/u01/Archive/1_78_907544441.dbf" ;
catalog clone archivelog "/u01/Archive/1_78_907544441.dbf";
switch clone datafile all;
}
executing Memory Script
Starting backup at 01-APR-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log copy
input archived log thread=1 sequence=78 RECID=76 STAMP=908056394
output file name=/u01/Archive/1_78_907544441.dbf RECID=0 STAMP=0
channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
Finished backup at 01-APR-16
cataloged archived log
archived log file name=/u01/Archive/1_78_907544441.dbf RECID=76 STAMP=908056396
datafile 1 switched to datafile copy
input datafile copy RECID=4 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=5 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=6 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=7 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=8 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/example01.dbf
contents of Memory Script:
{
set until scn 1084167;
recover
clone database
delete archivelog
;
}
executing Memory Script
executing command: SET until clause
Starting recover at 01-APR-16
using channel ORA_AUX_DISK_1
starting media recovery
archived log for thread 1 with sequence 78 is already on disk as file /u01/Archive/1_78_907544441.dbf
archived log file name=/u01/Archive/1_78_907544441.dbf thread=1 sequence=78
media recovery complete, elapsed time: 00:00:01
Finished recover at 01-APR-16
Oracle instance started
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes
contents of Memory Script:
{
sql clone "alter system set db_name =
''DB11G'' comment=
''Reset to original value by RMAN'' scope=spfile";
sql clone "alter system reset db_unique_name scope=spfile";
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
sql statement: alter system set db_name = ''DB11G'' comment= ''Reset to original value by RMAN'' scope=spfile
sql statement: alter system reset db_unique_name scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "DB11G" RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 SIZE 50 M ,
GROUP 2 SIZE 50 M ,
GROUP 3 SIZE 50 M
DATAFILE
'/u01/app/oracle/oradata/DB11G/system01.dbf'
CHARACTER SET WE8MSWIN1252
contents of Memory Script:
{
set newname for tempfile 1 to
"/u01/app/oracle/oradata/DB11G/temp01.dbf";
switch clone tempfile all;
catalog clone datafilecopy "/u01/app/oracle/oradata/DB11G/sysaux01.dbf",
"/u01/app/oracle/oradata/DB11G/undotbs01.dbf",
"/u01/app/oracle/oradata/DB11G/users01.dbf",
"/u01/app/oracle/oradata/DB11G/example01.dbf";
switch clone datafile all;
}
executing Memory Script
executing command: SET NEWNAME
renamed tempfile 1 to /u01/app/oracle/oradata/DB11G/temp01.dbf in control file
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf RECID=1 STAMP=908056426
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf RECID=2 STAMP=908056426
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/DB11G/users01.dbf RECID=3 STAMP=908056426
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/DB11G/example01.dbf RECID=4 STAMP=908056426
datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=908056426 file name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=908056426 file name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=908056426 file name=/u01/app/oracle/oradata/DB11G/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=908056426 file name=/u01/app/oracle/oradata/DB11G/example01.dbf
contents of Memory Script:
{
Alter clone database open resetlogs;
}
executing Memory Script
database opened
Finished Duplicate Db at 01-APR-16

step6)

Validation primary database and target database.
on target database side

SQL> select name from v$database;

NAME
---------
DB11G

SQL> !hostname
stand.example.com

SQL> conn scott/******

SQL> show user

USER is "SCOTT"

SQL> select OBJECT_TYPE,count(*) from user_objects group by object_type;

OBJECT_TYPE COUNT(*)
------------------- ----------
INDEX 2
TABLE 5

on primary database side

SQL> select name from v$database;

NAME
---------
DB11G

SQL> !hostname
prim.example.com

SQL> conn scott/******
Connected.

SQL> show user
USER is "SCOTT"

SQL> select OBJECT_TYPE,count(*) from user_objects group by object_type;

OBJECT_TYPE COUNT(*)
------------------- ----------
INDEX 2
TABLE 5

Monday 7 March 2016

Create and Assign Tablespace to local user in 12c pluggable database.


[oracle@localhost admin]$ sqlplus

SQL*Plus: Release 12.1.0.2.0 Production on Mon Mar 7 16:58:58 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Enter user-name: /as sysdba

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> show con_id

CON_ID
------------------------------
1

SQL> select name,CON_ID from v$tablespace;

NAME                               CON_ID
------------------------------ ----------
SYSAUX                                  1
SYSTEM                                  1
UNDOTBS1                                1
USERS                                   1
TEMP                                    1
SYSTEM                                  2
SYSAUX                                  2
TEMP                                    2
SYSTEM                                  3
SYSAUX                                  3
TEMP                                    3

NAME                               CON_ID
------------------------------ ----------
USERS                                   3

12 rows selected.

SQL> select T.name,T.con_id,C.name
from v$tablespace T,v$containers C
where C.con_id= T.con_id ;  2    3

NAME                               CON_ID NAME
------------------------------ ---------- ------------------------------
TEMP                                    1 CDB$ROOT
USERS                                   1 CDB$ROOT
UNDOTBS1                                1 CDB$ROOT
SYSTEM                                  1 CDB$ROOT
SYSAUX                                  1 CDB$ROOT
TEMP                                    2 PDB$SEED
SYSAUX                                  2 PDB$SEED
SYSTEM                                  2 PDB$SEED
USERS                                   3 PDB1
TEMP                                    3 PDB1
SYSAUX                                  3 PDB1

NAME                               CON_ID NAME
------------------------------ ---------- ------------------------------
SYSTEM                                  3 PDB1

12 rows selected.

SQL> alter session set container=pdb1;

Session altered.

SQL> show con_id;

CON_ID
------------------------------
3
SQL> select con_id, name from v$containers;

    CON_ID NAME
---------- ------------------------------
         3 PDB1

SQL> show user;
USER is "SYS"
SQL> select FILE_NAME from dba_data_files;

FILE_NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/CDB1/2D689955A3305006E055000000000001/datafile/o1_mf_sys
tem_cfs6gb0d_.dbf

/u01/app/oracle/oradata/CDB1/2D689955A3305006E055000000000001/datafile/o1_mf_sys
aux_cfs6gb0v_.dbf

/u01/app/oracle/oradata/CDB1/2D689955A3305006E055000000000001/datafile/o1_mf_use
rs_cfs6h1n7_.dbf


SQL> select T.name,T.con_id,C.name
from v$tablespace T,v$containers C
where C.con_id= T.con_id ;  2    3

NAME                               CON_ID NAME
------------------------------ ---------- ------------------------------
USERS                                   3 PDB1
TEMP                                    3 PDB1
SYSAUX                                  3 PDB1
SYSTEM                                  3 PDB1

SQL> create TABLESPACE test
  DATAFILE '/u01/app/oracle/oradata/CDB1/2D689955A3305006E055000000000001/datafile/test.dbf' SIZE 10M
  AUTOEXTEND ON NEXT 10M;  2    3

Tablespace created.

SQL> select T.name,T.con_id,C.name
from v$tablespace T,v$containers C
where C.con_id= T.con_id ;  2    3

NAME                               CON_ID NAME
------------------------------ ---------- ------------------------------
TEST                                    3 PDB1
USERS                                   3 PDB1
TEMP                                    3 PDB1
SYSAUX                                  3 PDB1
SYSTEM                                  3 PDB1

SQL> create user test
  2  identified by test
  3  default tablespace test
  4  CONTAINER=CURRENT;

User created.

SQL>  select username,DEFAULT_TABLESPACE as usr_T from dba_users where username='TEST';

USERNAME            USR_T                                                                                                        USR_T
-------------------------
TEST                TEST                                                                                                         TEST

SQL> grant connect,resource to test;

Grant succeeded.

SQL> conn test/test@pdb1
Connected.

SQL> create table test01(id number);

Table created.

SQL> insert into test01 values(1);

1 row created.

SQL> /

1 row created.

SQL> /

1 row created.

SQL> commit;

Commit complete.

SQL>  select * from test01;

        ID
----------
         1
         1
         1

SQL> set lines 200
SQL> select TABLE_NAME,TABLESPACE_NAME from user_tables where TABLE_NAME='TEST01';

TABLE_NAME              TABLESPACE_NAME
---------------- ------------------------------
TEST01                     TEST

SQL>
                                       ************END***************

Saturday 6 February 2016

Oracle 12c database software installation steps .

Oracle 12c database software  installation steps .

Figure1:- deselect  check box and click next button


Figure2:- select install database software and click next

 Figure3:- select single instance database installation and click next button


 Figure4:- select language and click next button

 Figure5:- select enterprise edition and click next button

 Figure6:- specify the oracle base and software location and click next button.

 Figure7:- specify the Inventory Directory location.

 Figure8:- click next button

Figure 9:- click installation button.


Figure10:- run the orainstRoot.sh and root.sh using root user.

Figure11:- click close button.


work on autovacuum postgreSQL parameter

 In This blog, we are discussing the auto vacuum parameter on a small scale. we will understand the below parameters and will see how to mod...