You are on page 1of 1005

ScribdExplore

Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman
Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.
SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';
Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved
DBA Task Finished
Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37
Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document
1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview
Unlock full access with a free trial.
Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.
SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';
Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.
Web sites for references:
http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman
Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved
DBA Task Finished
Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37
Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview
Unlock full access with a free trial.
Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document
1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.
Web sites for references:
http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman
Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.
SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';
Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved
DBA Task Finished
Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37
Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document
1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview
Unlock full access with a free trial.
Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.
SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';
Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.
Web sites for references:
http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman
Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved
DBA Task Finished
Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37
Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview
Unlock full access with a free trial.
Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document
1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.
Web sites for references:
http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman
Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.
SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';
Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved
DBA Task Finished
Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37
Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document
1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview
Unlock full access with a free trial.
Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.
SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';
Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.
Web sites for references:
http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman
Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved
DBA Task Finished
Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37
Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview
Unlock full access with a free trial.
Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document
1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.
Web sites for references:
http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman
Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.
SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';
Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved
DBA Task Finished
Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37
Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document
1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview
Unlock full access with a free trial.
Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.
SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';
Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.
Web sites for references:
http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman
Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved
DBA Task Finished
Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37
Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview
Unlock full access with a free trial.
Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document
1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.
Web sites for references:
http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman
Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.
SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into
vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.
SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';
Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved
DBA Task Finished
Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37
Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document
1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information

Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview

Unlock full access with a free trial.


Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English
ScribdExplore
Search
Search
Search
UploadSaved

DBA Task Finished


Uploaded by Viswanath Janakiraman on Dec 05, 2011
Related Interests
Oracle DatabaseDatabase SchemaDatabasesTable (Database)Method (Computer
Programming)
Rating and Stats
0Up votes
0Down votes
225 views
Document Actions
Download
Save for Later
Other Actions
SHARE OR EMBED DOCUMENT
Sharing Options
Share on Facebook, opens a new windowShare on Twitter, opens a new windowShare on
LinkedInShare by email, opens mail client
Embed
View More
Copyright: Attribution Non-Commercial (BY-NC)
Download as DOC, PDF, TXT or read online from Scribd
Flag for inappropriate content
Recommended Documents
Documents Similar To DBA Task Finished
Oracle DBA
Oracle DBA
by Sravan Kumar
Basic to Know in Oracle
Basic to Know in Oracle
by Sachin
Oracle DBA Notes
Oracle DBA Notes
by Gurusamy V
Documents About Oracle Database
OMIPM Testing
OMIPM Testing
by International Journal for Scientific Research and Development
tmp6FCD.tmp
tmp6FCD.tmp
by Frontiers
Sap Hana is Truly a Game Changer
Sap Hana is Truly a Game Changer
by International Journal for Scientific Research and Development
More From Viswanath Janakiraman
OOAD-2M&16M
OOAD-2M&16M
by Viswanath Janakiraman
do's
do's
by Viswanath Janakiraman
Cloning Solution 353626
Cloning Solution 353626
by Viswanath Janakiraman

Search document

1
You are on page 1of 37

Screen Reader Compatibility Information


Due to the method this document is displayed on the page, screen readers may not
read the content correctly. For a better experience, please download the original
document and view it in the native application on your computer.

Web sites for references:


http://www.bestremotedba.comhttp://www.shutdownabort.com http://www.orafaq.com
http://asktom.oracle.com
http://psoug.orghttp://www.bash-dba.comTABLESPACE:
1)SQL> create tablespace vichu datafile'/u01/app/oracle/oradata/testdb/dat03.dbf'
size 40M ; Tablespace created.2)SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/dat04.dbf' size 40M; Tablespace
altered.3)SQL> create tablespace
vichu1datafile'/u01/app/oracle/oradata/testdb/dat05.dbf' size 40M extentmanagement
local uniform size 256k; Tablespace created.SQL> alter tablespace vichu offline;
Tablespace altered.SQL> drop tablespace vichu including contents; Tablespace
dropped.SQL> create tablespace vichu
datafile'/u01/app/oracle/oradata/testdb/tst.dbf'size 40M extent
managementdictionary default storage (initial 1M next 1M); Tablespace created.SQL>
alter tablespace vichu logging; Tablespace altered.
Create Table:
SQL> create table vichu (sno number(10),name varchar2(30)); Table created.SQL>
insert into vichu values(1,'viswa') ;1 row created.

SQL> insert into vichu values(1,'viswa') ;1 row created.Sql>commit;QL> insert into


vichu values(2,'praveen') ;1 row created.SQL> commit2 /Commit complete.SQL>
rollback;Rollback complete. SQL> alter tablespace vichu nologging; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds.dbf'size 40M autoextend on; Tablespace
altered.SQL> alter tablespace vichu add
datafile'/u01/app/oracle/oradata/testdb/ds1.dbf' size 20M; Tablespace altered.

SQL> alter tablespace vichu drop datafile'/u01/app/oracle/oradata/testdb/ds1.dbf';


Tablespace altered.SQL> alter tablespace vichu offline; Tablespace altered.SQL>
alter tablespace vichu online; Tablespace altered.SQL> alter tablespace vichu
offline; Tablespace altered.SQL> alter database datafile
'/u01/app/oracle/oradata/testdb/ds.dbf' offline;Database altered.SQL> alter
database datafile '/u01/app/oracle/oradata/testdb/ds.dbf' online;Database
altered.SQL> exec dbms_space_admin.Tablespace_Migrate_FROM_Local ('VICHU');PL/SQL
procedure successfully completed.SQL> exec
dbms_space_admin.Tablespace_Migrate_TO_Local('VICHU');PL/SQL procedure successfully
completed.SQL> exec dbms_space_admin.Tablespace_Migrate_TO_Local('SYSTEM');
TEMPORARY TABLESPACE :
Below query is to view the properties of temporary tablespace
SQL> SELECT * FROM DATABASE_PROPERTIES
wherePROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
SQL> create temporary tablespace temp tempfile'/u01/app/oracle/oradata/temp01.dbf'
size 40M; Tablespace created.SQL> alter temporary tablespace temp add
tempfile'/u01/app/oracle/oradata/temp02.dbf' size 40M; Tablespace altered.SQL> drop
tablespace temp including contents; Tablespace dropped.SQL> create temporary
tablespace temp tempfile'/u01/app/oracle/oradata/testdb/temp01.dbf' size 40M extent
managementlocal uniform size 256k; Tablespace created.
Hint : we cant create temporary tablespace using dictionary mgmt.
You're reading a preview. Unlock full access with a free trial.
Pages 4 to 37 are not shown in this preview.
Download With Free Trial
You're Reading a Preview
Unlock full access with a free trial.
Download With Free Trial
Recommended Documents
Documents Similar To DBA Task Finished
carousel next
Oracle DBA
Oracle DBA
Basic to Know in Oracle
Basic to Know in Oracle
Oracle DBA Notes
Oracle DBA Notes
Database Admin
Database Admin
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
COMMON USED DICTIONARY VIEWS-ORACLE DBA-APPSDBA Oracle DBA
DBA MAT
DBA MAT
DBA Notes
DBA Notes
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
SNAPSHOT STANDBY AND ACTIVE DATA GUARD.pdf
DBA Interview Questions
DBA Interview Questions
Ramana-ora
Ramana-ora
Oracle 11g 2 Day DBA Hands-On
Oracle 11g 2 Day DBA Hands-On
Commands
Commands
Tuning Session
Tuning Session
Oracle DBA Interview Questions
Oracle DBA Interview Questions
Oracle DBA Interview Questions Nil
Oracle DBA Interview Questions Nil
rman_comm
rman_comm
PRACTICALS BOOK DBA
PRACTICALS BOOK DBA
Scripts DBA
Scripts DBA
AWR_NEW
AWR_NEW
oracle db basic commands
oracle db basic commands
Daily Activities of DBA
Daily Activities of DBA
Oracle DBA Checklist
Oracle DBA Checklist
1Z0-042_StudyGuide(2)
1Z0-042_StudyGuide(2)
50 Most Frequently Used UNIX
50 Most Frequently Used UNIX
Tablespace
Tablespace
Oracle DBA Interview Question1
Oracle DBA Interview Question1
ROLES AND PRIVILEGES IN ORACLE.pdf
ROLES AND PRIVILEGES IN ORACLE.pdf
Data Guard
Data Guard
DBA Interview Questions
DBA Interview Questions
Oracle 11g DBA
Oracle 11g DBA
More From Viswanath Janakiraman
carousel next
OOAD-2M&16M
OOAD-2M&16M
do's
do's
Cloning Solution 353626
Cloning Solution 353626
less01dba1-100330020924-phpapp02
less01dba1-100330020924-phpapp02
ooad
ooad
JavaBasics
JavaBasics
Footer Menu
ABOUT
About Scribd
Press
Our blog
Join our team!
Contact Us
Invite Friends
Gifts
LEGAL
Terms
Privacy
Copyright
SUPPORT
Help / FAQ
Accessibility
Purchase help
AdChoices
Publishers
Social Media
Scribd - Download on the App StoreScribd - Get it on Google Play
Copyright 2017 Scribd Inc. .Browse Books.Mobile Site.Site Directory.Site
Language:
English

You might also like