Create:
CREATE TABLESPACE DATA05 DATAFILE 'D:\app_db12c\oracle\oradata\orcl\sample01.dbf' SIZE 1M AUTOEXTEND ON NEXT 1M;
Extend:
ALTER TABLESPACE DATA05 ADD
DATAFILE 'D:\app_db12c\oracle\oradata\orcl\sample02.dbf' SIZE 1M
AUTOEXTEND ON NEXT 1M;
Delete:
DROP TABLESPACE DATA05 INCLUDING CONTENTS AND DATAFILES;
Showing posts with label 12c database. Show all posts
Showing posts with label 12c database. Show all posts
Feb 20, 2017
Nov 4, 2016
SQLPLUS command to start oracle pdbs
sqlplus sys/xxxxx as sysdba@pdborcl.xxxx.com
SQL*Plus: Release 12.1.0.2.0 Production on Fri Nov 4 12:07:01 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
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> SELECT name,open_mode from v$pdbs ORDER BY name;
NAME OPEN_MODE
------------------------------ ----------
PDB$SEED READ ONLY
PDBORCL MOUNTED
SQL> alter pluggable database pdborcl open read write;
Pluggable database altered.
SQL> SELECT name,open_mode from v$pdbs ORDER BY name;
NAME OPEN_MODE
------------------------------ ----------
PDB$SEED READ ONLY
PDBORCL READ WRITE
SQL>
SQL*Plus: Release 12.1.0.2.0 Production on Fri Nov 4 12:07:01 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
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> SELECT name,open_mode from v$pdbs ORDER BY name;
NAME OPEN_MODE
------------------------------ ----------
PDB$SEED READ ONLY
PDBORCL MOUNTED
SQL> alter pluggable database pdborcl open read write;
Pluggable database altered.
SQL> SELECT name,open_mode from v$pdbs ORDER BY name;
NAME OPEN_MODE
------------------------------ ----------
PDB$SEED READ ONLY
PDBORCL READ WRITE
SQL>
Subscribe to:
Posts (Atom)