Explain CREATE DATABASE syntax?
Answers were Sorted based on User's Feedback
Answer / naresh
CREATE DATABASE DB1
LOGFILE
GROUP 1 '/oracle/oradata/db1/redo1a.log' size 5m,
GROUP 2 '/oracle/oradata/db2/redo2a.log' size 5m
TABLESPACE USERS datafile '/oracle/oradata/db1/system.dbf'
size 100m
AUTOEXTEND ON,
DEFAULT TEMPORARY TABLESPACE
tempfile '/oracle/oradata/db1/temp.dbf' size 10m AUTOEXTEND
ON,
TABLESPACE UNDO datafile '/oracle/oradata/db1/undo.dbf'
size 10m
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET US16UTF16;
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / rohit bhosale
Create Database [database_name] On Primary
(
Name='abc', Filename='path_of_mdf_file'
)
log on
(
Name='abc_log', Filename='path_of_ldf_file'
)
Eg:
Create database emp on primary
(
name='emp1', filename='d:\sql\emp.mdf'
)
log on
(
name='emp1_log', filename='d:\sql\emp_log.ldf'
)
Is This Answer Correct ? | 0 Yes | 0 No |
what is difference between user managed backup and rman backup?
You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?
How can you enable a trace for a session?
Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?
What is blocking and how would you troubleshoot it?
In what script is "snap$" created? In what script is the "scott/tiger" schema created?
What is the difference between Datapump & export/import?
How would you best determine why your MVIEW couldn't FAST REFRESH?
What view(s) do you use to associate a user's SQLPLUS session with his o/s process?
How do you recover a datafile that has not been physically been backed up since its creation and has been deleted. Provide syntax example.
How many memory layers are in the shared pool?
why Datapump is faster than traditional export and import