Explain CREATE DATABASE syntax?

Answers were Sorted based on User's Feedback



Explain CREATE DATABASE syntax?..

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

Explain CREATE DATABASE syntax?..

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

Post New Answer

More DB Administration Interview Questions

You create a private database link <link name> and upon connection, fails with: ORA-2085: <Link name> connects to <fully qualified remote db name>. What is the problem? How would you go about resolving this error?

0 Answers  


what is the role of dip user in our database?

0 Answers  


Compare and contrast TRUNCATE and DELETE for a table.

7 Answers  


Can you tell me about your experience with the administration of COTS system..? Also, how do you set up seed data..?

0 Answers  


What is the default fill factor value? : sql server DBA

0 Answers  






how do we explain a project in cognos in an interview? please help me. Also how do we perform testing in cognos after creating reports?

0 Answers   HSBC,


Describe what redo logs are.

1 Answers  


What are the new features in sql server 2005 when compared to sql server 2000? : sql server DBA

0 Answers  


how does an oracle clusterware manage crs resources?

0 Answers   Oracle,


How would you extract DDL of a table without using a GUI tool?

0 Answers  


how will you see when the database was started using sql prompt?

2 Answers   IBM,


How can you tell how much space is left on a given file system and how much space each of the file system's subdirectories take-up?

0 Answers  


Categories