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

What is the difference between clustered and non-clustered index? : sql server DBA

1 Answers  


Which environment variables are absolutely critical in order to run the OUI?

2 Answers  


I have kept recovery catalog on same target database and taken backup of target DB to disk. deleted the target DB & tried to restore and revoer DB using the backup on disk but it is not possible, how do we restore & recover DB

1 Answers  


What is the difference between the SQL Loader and IMPORT utilities?

3 Answers  


what are the performance views in an oracle rac environment?

1 Answers   Oracle,


Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?

1 Answers  


I have A,B,C servers.i want to 3 servers jobs move to D server(target server)..how? note: i said that take the backup of msdb and restore to the target server..he said while restoring jobs replaced. what is the solution

1 Answers  


How to determine the service pack currently installed on SQL Server?

1 Answers  


i need a brief information about db2 dba course and realtime experts if any plz inform me nareshbhupathi93@gmail.com plzzz urgent

1 Answers   TCS,


Give two methods you could use to determine what DDL changes have been made.

2 Answers  


Give two examples of referential integrity constraints.

2 Answers  


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

1 Answers  


Categories