TS datafile to move to new database
Hi Folks,
I have a datafile of my tablespace that contained all tables of my schema.
Say it was in Database "ORAPRDB"
Now when i just want to move this schema to a new database so I copied the datafile to a new database "TESTDB" recreate the control files and try to bring up the instance.
But this is complaining of the datafile not belonging of the right database. (possibly it is looking for ORAPRDB when I am trying to plug it in TESTDB ).
Is there a way to get this done.
I know there is a transportable tablespace functionality in 9i .. but In this case .. I do not think I will be able to use this.
TIA
Sunil Choudhary
Hello,
You don't mention from which version to which version you are transporting your tablespace and is this transportation is cross platform. Beacuse cross platform transformation is started with 10g only. Also remember these points :
The source and target database must use the same character set and national character set.
You cannot transport a tablespace to a target database in which a tablespace with the same name already exists. However, you can rename either the tablespace to be transported or the destination tablespace before the transport operation.
Objects with underlying objects (such as materialized views) or contained objects (such as partitioned tables) are not transportable unless all of the underlying or contained objects are in the tablespace set.
For complete information follow this link and read the related section of Tablespace Transportation:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#sthref1267
I hope this will help you...
Similar Messages
-
Move OEM central repository to a new database
Hi,
We want to move the OEM central repository to a different machine, we would like to migrate the data from original database to the new database. What's the best way to do that and how to re-configure OMS to use the new database? Thanks!Hi,
Please follow the document below:
Grid Control Repository: Steps for Cross Platform Migration of the 10g Grid Control Repository (Doc ID 388090.1)
Best Regards,
Venkat -
Creating new database with old database datafile
is it possible to create new database with old datafile
i lost my database ,i have no back up, just i have datafiles,
i want to create new database and want to create tablespaces with old datafiles
pls suggest me right one
tahnk youSQL> recover database using backup controlfile until cancel;
ORA-00279: change 339559282 generated at 03/09/2008 12:23:01 needed for thread 1
ORA-00289: suggestion : F:\ORA9IAS\RDBMS\ARC01901.001
ORA-00280: change 339559282 for thread 1 is in sequence #1901
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log 'F:\ORA9IAS\RDBMS\ARC01901.001'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'F:\ORA9IAS\ORADATA\IASDB\SYSTEM01.DBF' -
Creating a new database containing part of an existing database,same server
Hi All Experts,
I have a problem. I am trying to create a new database on a server which already has a database (named qadb10g) running on it. I want the new database to contain only a few tablspaces of the "qadb10g" database. I tried this approach.
1. Take an RMAN backup of the desired tablespaces from the source database (qadb10g), including system and undo tablespaces as well.
2. Use "SET NEWNAME FOR DATAFILE ..." RMAN commands to restore all the data files in the new disk location on the same server.
3. Run "ALTER DATABASE BACKUP CONTROLFILE TO TRACE" command in the "qadb10g" database to generate a "create controlfile...." script.
4. Edit the resulting file (from step 3) to change file locations and database name, instance name, etc.
5. Create a new init.ora file for the new database.
6. From an sql*plus session, with "ORACLE_SID" already set to new database name, run the "create controlfile ..." script which we generated and changed above.
I performed steps 1-5 successfully, But when I ran the step 6 command, I got an error saying "Datafile Header contains database name 'qadb10g' which is not maching the <newdb name> .....".
This means, the database datafiles which were backed up and restored from the 'qadb10g' database still contain the same db name in their header and this is preventing new control file from being created. So, the new datbase cannot be created. Can anbody help me how to resolve this problem???
Any urgent help would be greatly appreciated. Thanks in advance.At Step 4, did you use the SET <newdbname> in the create controlfile script ?
At Step 5, did you change the db_name in the pfile ?
nid is the new and easier way to change the database name. -
Error when creating a new database on oracle 9i release 2
hi friend,
i have a question when i create new database manually then i get error.
error like this
create database alauki
error at line 1:
ORA-01092 : ORACLE instance terminated. Disconnection forced
the alert log file is
Dump file e:\ritesh\alauki\bdump\alert_alauki.log
Mon Jan 02 06:42:47 2006
ORACLE V9.2.0.1.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.1 Service Pack 2, CPU type 586
Mon Jan 02 06:42:47 2006
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 2
Using log_archive_dest parameter default value
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.1.0.
System parameters with non-default values:
processes = 150
timed_statistics = TRUE
shared_pool_size = 50331648
large_pool_size = 8388608
java_pool_size = 33554432
control_files = E:\RITESH\DATA\CONTROL01.CTL, E:\RITESH\MIRROR\CONTROL01.CTL
db_block_size = 8192
db_cache_size = 25165824
compatible = 9.2.0.0.0
db_file_multiblock_read_count= 16
fast_start_mttr_target = 300
undo_management = AUTO
undo_tablespace = UNDOTBS1
undo_retention = 10800
remote_login_passwordfile= EXCLUSIVE
db_domain =
instance_name = ALAUKI
dispatchers = (PROTOCOL=TCP) (SERVICE=ALAUKIXDB)
job_queue_processes = 10
hash_join_enabled = TRUE
background_dump_dest = E:\RITESH\ALAUKI\bdump
user_dump_dest = E:\RITESH\ALAUKI\udump
core_dump_dest = E:\RITESH\ALAUKI\cdump
sort_area_size = 524288
db_name = ALAUKI
open_cursors = 300
star_transformation_enabled= FALSE
query_rewrite_enabled = FALSE
pga_aggregate_target = 25165824
aq_tm_processes = 1
PMON started with pid=2
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
CJQ0 started with pid=8
QMN0 started with pid=9
Mon Jan 02 06:43:02 2006
starting up 1 shared server(s) ...
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
Mon Jan 02 06:43:07 2006
alter database mount exclusive
Mon Jan 02 06:43:08 2006
ORA-09341: scumnt: unable to mount database
OSD-04400: unable to acquire internal semaphore for process
O/S-Error: (OS 183) Cannot create a file when that file already exists.
Mon Jan 02 06:43:08 2006
ORA-1102 signalled during: alter database mount exclusive...
Shutting down instance: further logons disabled
Shutting down instance (immediate)
License high water mark = 3
Waiting for dispatcher 'D000' to shutdown
Waiting for shared server 'S000' to die
All dispatchers and shared servers shutdown
Mon Jan 02 06:46:03 2006
alter database close normal
ORA-1507 signalled during: alter database close normal...
Dump file e:\ritesh\alauki\bdump\alert_alauki.log
Mon Jan 02 10:50:49 2006
ORACLE V9.2.0.1.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.1 Service Pack 2, CPU type 586
Mon Jan 02 10:50:49 2006
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 2
Using log_archive_dest parameter default value
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Mon Jan 02 10:51:24 2006
Starting up ORACLE RDBMS Version: 9.2.0.1.0.
System parameters with non-default values:
processes = 150
timed_statistics = TRUE
shared_pool_size = 50331648
large_pool_size = 8388608
java_pool_size = 33554432
control_files = E:\RITESH\DATA\CONTROL01.CTL, E:\RITESH\MIRROR\CONTROL01.CTL
db_block_size = 8192
db_cache_size = 25165824
compatible = 9.2.0.0.0
db_file_multiblock_read_count= 16
fast_start_mttr_target = 300
undo_management = AUTO
undo_tablespace = UNDOTBS1
undo_retention = 10800
remote_login_passwordfile= EXCLUSIVE
db_domain =
instance_name = ALAUKI
dispatchers = (PROTOCOL=TCP) (SERVICE=ALAUKIXDB)
job_queue_processes = 10
hash_join_enabled = TRUE
background_dump_dest = E:\RITESH\ALAUKI\bdump
user_dump_dest = E:\RITESH\ALAUKI\udump
core_dump_dest = E:\RITESH\ALAUKI\cdump
sort_area_size = 524288
db_name = ALAUKI
open_cursors = 300
star_transformation_enabled= FALSE
query_rewrite_enabled = FALSE
pga_aggregate_target = 25165824
aq_tm_processes = 1
PMON started with pid=2
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
CJQ0 started with pid=8
QMN0 started with pid=9
Mon Jan 02 10:51:34 2006
starting up 1 shared server(s) ...
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
Mon Jan 02 10:51:45 2006
alter database mount exclusive
Mon Jan 02 10:51:45 2006
ORA-00202: controlfile: 'E:\RITESH\DATA\CONTROL01.CTL'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Mon Jan 02 10:51:48 2006
ORA-205 signalled during: alter database mount exclusive...
Shutting down instance (abort)
License high water mark = 3
Instance terminated by USER, pid = 604
can u pls give me a solution of error
Thanks in advance
Ritesh Patel
Message was edited by:
RITESHthis is my alert log file
starting up 1 shared server(s) ...
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
Mon Jan 02 14:21:01 2006
CREATE DATABASE ALAUKI
USER SYS IDENTIFIED BY * USER SYSTEM IDENTIFIED BY * LOGFILE GROUP 1 ('E:\RITESH\DATA\REDO01.LOG') SIZE 100M,
GROUP 2 ('E:\RITESH\DATA\REDO02.LOG') SIZE 100M,
GROUP 3 ('E:\RITESH\DATA\REDO03.LOG') SIZE 100M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXINSTANCES 1
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET AL16UTF16
DATAFILE 'E:\RITESH\DATA\SYSTEM01.DBF' SIZE 325M REUSE
EXTENT MANAGEMENT LOCAL
DEFAULT TEMPORARY TABLESPACE TEMPTS1
TEMPFILE 'E:\RITESH\DATA\TEMP01.DBF' SIZE 20M REUSE
UNDO TABLESPACE UNDOTBS1
DATAFILE 'E:\RITESH\DATA\UNDOTBS01.DBF' SIZE 200M REUSE
AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
Mon Jan 02 14:21:02 2006
Database mounted in Exclusive Mode.
Mon Jan 02 14:21:36 2006
Successful mount of redo thread 1, with mount id 2260372877.
Assigning activation ID 2260372877 (0x86ba8d8d)
Thread 1 opened at log sequence 1
Current log# 1 seq# 1 mem# 0: E:\RITESH\DATA\REDO01.LOG
Successful open of redo thread 1.
Mon Jan 02 14:21:36 2006
SMON: enabling cache recovery
Mon Jan 02 14:21:36 2006
create tablespace SYSTEM datafile 'E:\RITESH\DATA\SYSTEM01.DBF' SIZE 325M REUSE
EXTENT MANAGEMENT LOCAL online
Mon Jan 02 14:22:11 2006
Completed: create tablespace SYSTEM datafile 'E:\RITESH\DATA
Mon Jan 02 14:22:11 2006
create rollback segment SYSTEM tablespace SYSTEM
storage (initial 50K next 50K)
Completed: create rollback segment SYSTEM tablespace SYSTEM
Mon Jan 02 14:22:16 2006
CREATE UNDO TABLESPACE UNDOTBS1 DATAFILE 'E:\RITESH\DATA\UNDOTBS01.DBF' SIZE 200M REUSE
AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
Mon Jan 02 14:22:38 2006
Created Undo Segment _SYSSMU1$
Created Undo Segment _SYSSMU2$
Created Undo Segment _SYSSMU3$
Created Undo Segment _SYSSMU4$
Created Undo Segment _SYSSMU5$
Created Undo Segment _SYSSMU6$
Created Undo Segment _SYSSMU7$
Created Undo Segment _SYSSMU8$
Created Undo Segment _SYSSMU9$
Created Undo Segment _SYSSMU10$
Undo Segment 1 Onlined
Undo Segment 2 Onlined
Undo Segment 3 Onlined
Undo Segment 4 Onlined
Undo Segment 5 Onlined
Undo Segment 6 Onlined
Undo Segment 7 Onlined
Undo Segment 8 Onlined
Undo Segment 9 Onlined
Undo Segment 10 Onlined
Successfully onlined Undo Tablespace 1.
Completed: CREATE UNDO TABLESPACE UNDOTBS1 DATAFILE 'E:\RITE
Mon Jan 02 14:22:39 2006
CREATE TEMPORARY TABLESPACE TEMPTS1 TEMPFILE 'E:\RITESH\DATA\TEMP01.DBF' SIZE 20M REUSE
Completed: CREATE TEMPORARY TABLESPACE TEMPTS1 TEMPFILE 'E:\
Mon Jan 02 14:22:40 2006
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMPTS1
Completed: ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMPTS
Mon Jan 02 14:22:41 2006
SMON: enabling tx recovery
Mon Jan 02 14:22:44 2006
Errors in file e:\ritesh\alauki\udump\rits_ora_804.trc:
ORA-01501: CREATE DATABASE failed
ORA-01991: invalid password file 'D:\oracle\ora90\DATABASE\PWDrits.ORA'
Mon Jan 02 14:22:44 2006
Error 1991 happened during db open, shutting down database
USER: terminating instance due to error 1991
Instance terminated by USER, pid = 804
ORA-1092 signalled during: CREATE DATABASE ALAUKI
USER SYS IDENTIFIED BY * U... -
Error message when creating new database
Hi, i am trying to create a new database for the first time but keep getting an error. Ive been through the create statement several times and it all looks good to me.Any help would be greatly appreciated !
The error im getting is :
ORA-00604: error occurred at recursive SQL level 2
ORA-00942: table or view does not exist
Fri Dec 9 22:54:10 2011
Errors in file /u03/app/oracle/admin/OPS/udump/ops_ora_59850.trc:
ORA-01501: CREATE DATABASE failed
ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 5608
ORA-00604: error occurred at recursive SQL level 2
ORA-00942: table or view does not exist
Fri Dec 9 22:54:10 2011
Error 1519 happened during db open, shutting down database
USER: terminating instance due to error 1519
Instance terminated by USER, pid = 59850
ORA-1092 signalled during: CREATE DATABASE OPS
Here is my create database statement:
CREATE DATABASE OPS
USER SYS IDENTIFIED BY pz6r58
USER SYSTEM IDENTIFIED BY y1tz5p
LOGFILE GROUP 1 ('/u98/oradata/OPS/redo01.log') SIZE 30M,
GROUP 2 ('/u98/oradata/OPS/redo02.log') SIZE 30M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
MAXINSTANCES 1
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET AL16UTF16
DATAFILE '/u02/oradata/OPS/system01.dbf' SIZE 30M REUSE
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE '/u02/oradata/OPS/sysaux01.dbf' SIZE 30M REUSE
DEFAULT TABLESPACE tbs01
DATAFILE '/u07/oradata/OPS/tbs01.dbf' SIZE 325M REUSE
DEFAULT TEMPORARY TABLESPACE temp01
TEMPFILE '/u07/oradata/OPS/temp01.dbf'
SIZE 20M REUSE
UNDO TABLESPACE undotbs01
DATAFILE '/u07/oradata/OPS/undotbs01.dbf'
Size 50m reuse;
Here is my pfile
db_block_size=8192
db_cache_size=25165824
db_file_multiblock_read_count=16
open_cursors=300
db_domain=world
db_name=OPS
background_dump_dest=/u03/app/oracle/admin/OPS/bdump
core_dump_dest=/u03/app/oracle/admin/OPS/cdump
timed_statistics=TRUE
user_dump_dest=/u03/app/oracle/admin/OPS/udump
control_files=("/u02/oradata/OPS/control01.ctl", "/u05/oradata/OPS/control02.ctl", "/u06/oradata/OPS/control03.ctl")
rollback_segments = (RBS01,RBS02,RBS03)
os_authent_prefix = ""
instance_name=OPS
compatible=10.2.0.0.0
#hash_join_enabled=TRUEa = obsolete in 10.2
query_rewrite_enabled=FALSE
star_transformation_enabled=FALSE
java_pool_size=0
large_pool_size=0
#large_pool_size=8388608
#shared_pool_size=36700160
shared_pool_size=76700160
#large_pool_size=8388608
#java_pool_size=150000000
#shared_pool_size=187928166
streams_pool_size=50331648
processes=150
session_max_open_files=20
fast_start_mttr_target=300
remote_login_passwordfile=EXCLUSIVE
pga_aggregate_target=25165824
sort_area_size=65536
rollback_segments = (RBS01,RBS02,RBS03)
undo_management=auto
undo_tablespace=UNDO_TS
#undo_retention=10800
Many thanksRefer this MOS ID *CREATE DATABASE Statement Fails With ORA-1501 ORA-1519 ORA-604 ORA-942 Errors [ID 434557.1]*
Increase the size of SYSAUX tablespace in the CREATE DATABASE statement.
The SYSAUX tablespace needs to be at least 240 MB at the time of database creation. The space requirements of the SYSAUX tablespace will increase after the database is fully deployed
Also the size of the system tablespace should be more and not to 30 MB as in your case -
HELP: Problem creating a new database in Oracle 9i
I am having difficulty in creating a new database in Oracle 9i, on Windows 2000. I would be obliged if somebody can go through the posting below and guide me as to what mistake I am making or what is the source of the problem:
I reproduce the steps taken by me.
I have decide the database to be called Mydb. I have made the following directories:
-- d:\mydb
-- d:\mydb\data
-- d:\mydb\control
-- d:\mydb\log
-- d:\mydb\bdump
-- d:\mydb\cdump
-- d:\mydb\udump
-- d:\mydb\archive
-- d:\mydb\pfile
-- d:\mydb\scripts
-- d:\mydb\exp
I copied the initoracle.ora file to d:\mydb\pfile\initmydb.ora, and made the following changes to it:
-- db_name = mydb
-- instance_name = mydb
-- control_files = ("d:\mydb\control\control01.ctl")
-- background_dump_dest = d:\mydb\bdump
-- core_dump_dest = d:\mydb\cdump
-- user_dump_dest = d:\mydb\udump
-- remote_login_passwordfile = exclusive
Also, I created a text file called d:\Oracle\Ora90\DATABASE\initmydb.ora with the following contents:
ifile=d:\mydb\pfile\initmydb.ora
At DOS prompt, I run the following command:
set oracle_sid=mydb
I run the ORAPWD utility to create internal password file at the command prompt.
d:
cd \oracle\ora90\database
orapwd file=pwdmydb.ora password=panther entries=25
I create a Windows service for the database as follows:
oradim -new -sid mydb -startmode a -pfile d:\mydb\pfile\initmydb.ora
I get connected:
sqlplusw /nolog
connect sys/change_on_install as sysdba
startup nomount # pfile=d:\mydb\pfile\initmydb.ora
create database mydb
MAXINSTANCES 1
MAXLOGHISTORY 1
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXDATAFILES 100
datafile 'd:\mydb\data\system.dbf' size 325m REUSE
AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
undo tablespace undotbs datafile 'd:\mydb\data\undo01.dbf' size
200m reuse
AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
default temporary tablespace temptbs
CHARACTER SET WE8MSWIN1252
NATIONAL CHARACTER SET AL16UTF16
logfile group 1 ('d:\mydb\log\log1.log') size 1m,
group 2 ('d:\mydb\log\log2.log') size 1m,
group 3 ('d:\mydb\log\log3.log') size 1m;
Now I get the following error:
create database mydb
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
The data files, control file, redo log files are all created. But the above error comes, and I am unable to start the database. What is the reason?
Thanks in anticipation.
PSHi DENIS,
I have executed the following commands (which are in a script file),
1. sqlplus /nolog
2. connect sys/change_on_install as sysdba
3. create database ...
4. ...
When I execute the 3rd command, I get an error message as "ORACLE TERMINATED FORCED" and it will end the session. So when the next set of commands in the script are executed, I got the error saying "DATABASE NOT OPEN".
How to rectify this problem.
Thanks in advance,
Kiran -
Problem in new database creation with the help of online backup
Dear dba's
i am using oracle 11gR2 database in windows server 2003. database is running in ARCHIVE LOG mode.
i have taken an online backup of all datafile,controlfile and spfile.Then i crated folders in all the locations as required for new database.
then i registerd the service of new database named as 'newdb' by
oradim -NEW -SID newdb
then i created a password file manually in 'oracle_home\database' location.
i created a new contolfile named as controlfile_01.ctl. the content of controlfile as follows
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "NEWDB" NORESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 (
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_1_7FK0XG7B_.LOG',
'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_1_7FK0XHWB_.LOG'
) SIZE 50M,
GROUP 2 (
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_2_7FK0XKB8_.LOG',
'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_2_7FK0XM0Z_.LOG'
) SIZE 50M,
GROUP 3 (
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_3_7FK0XNOZ_.LOG',
'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_3_7FK0XOWB_.LOG'
) SIZE 50M
DATAFILE
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_SYSTEM_7FK0SKN0_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_SYSAUX_7FK0SKPG_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_UNDOTBS1_7FK0SKTC_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_USERS_7FK0SKWB_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_EXAMPLE_7FK0Z5LK_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\MARSH.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\JOMARSH.DBF'
CHARACTER SET AL32UTF8
the control file path was registered in pfile also.
then i brought the database to nomount stage.
the problem is when i try to mount database it shows following error. anyone can help me to over come from this issue????????
SQL> startup pfile='D:\app\Administrator\product\11.1.0\db_1\database\INITnewdb.ora' nomount;
ORACLE instance started.
Total System Global Area 535662592 bytes
Fixed Size 1334380 bytes
Variable Size 301990804 bytes
Database Buffers 226492416 bytes
Redo Buffers 5844992 bytes
SQL> ALTER DATABASE MOUNT;
ALTER DATABASE MOUNT
ERROR at line 1:
ORA-00205: error in identifying control file, check alert log for more info
the alert massage is:
ORA-00210: cannot open the specified control file
ORA-00202: control file: 'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\CONTROLFILE\CONTROLFILE_01.CTL'
ORA-27048: skgfifi: file header information is invalid
OSD-04001: invalid logical block size (OS 1413563730)
Fri Dec 09 13:11:59 2011
Checker run found 1 new persistent data failures
ORA-205 signalled during: ALTER DATABASE MOUNT...
Thanks & Regards,
John Marshal.AHi;
Error: ORA 205
Text: error in identifying control file <name>
Cause: The system could not find a control file of the specified name and
size.
Action: Either
Check that the proper control filename is referenced in the
CONTROL_FILES initialization parameter in the initialization parameter
file and try again.
When using mirrored control files, that is, more than one control file
is referenced in the initialization parameter file, remove the control
filename listed in the message from the initialization parameter file
and restart the instance.
If the message does not recur, remove the problem control file from
the initialization parameter file and create another copy of the
control file with a new filename in the initialization parameter file.
Regard
Helios -
How to Create A new Database in the oracle 10g XE
i have oracle 10g XE i tried to create a new database but its giveing me error when i execute the sql command that is create database testDatabase how to create a new database in oracle 10g XE
Hi there 785434,
(This is a generic SQL question relating to Database Triggers, please post future questions of this type into the relevant forum area.)
Moderator, please move this if able
I use Before Update and Before Delete Triggers to record a 'snapshot' of the row being changed in my applications.
Example:
CREATE TABLE TEST
DATA VARCHAR2(64 CHAR),
CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
CREATED_DATE DATE NOT NULL,
CHANGED_BY_USERID VARCHAR2(20 CHAR),
CHANGED_DATE DATE
LOGGING
STORAGE
(MAXEXTENTS UNLIMITED);
CREATE TABLE TEST_HISTORY
DATA VARCHAR2(64 CHAR),
CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
CREATED_DATE DATE NOT NULL,
CHANGED_BY_USERID VARCHAR2(20 CHAR),
CHANGED_DATE DATE,
CHANGE_DESCRIPTION
NOLOGGING
STORAGE
(MAXEXTENTS UNLIMITED);
CREATE OR REPLACE TRIGGER TRG_BU_TEST
BEFORE UPDATE ON TEST FOR EACH ROW
BEGIN
INSERT /*+ append */ INTO TEST_HISTORY
(DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
VALUES
(:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'UPDATE');
END;
CREATE OR REPLACE TRIGGER TRG_BD_TEST
BEFORE DELETE ON TEST FOR EACH ROW
BEGIN
INSERT /*+ append */ INTO TEST_HISTORY
(DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
VALUES
(:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'DELETE');
END;
Using triggers like this will record who made an update or delete to the database and record the row before it was changed.
Note that this method might not be suitable for very high transaction rates.
You will need to 'clear' these history tables as part of routine maintenance.
Hope that this Helps.
Ronald. -
Mailbox Issues in New Databases in DAG
Ran across a strange problem after moving mailboxes into 2 new Databases in DAG. We have a 2 Server DAG that
had 2 existing DBs. We created 3 additional DBs and planned on moving all MBs over to reclaim space from the older DBs. After moving 30 or so Mbs to the new Databases we found that while mailflow functioned, we could not access any shared mailboxes or mailboxes
that had full control permissions could not be added. Users that had been moved but had shared MBs on another DB in Outlook would get error messages that Folders could not be expanded or Exchange Server was unreachable, all while mail flow was functioning.
Moving these users back to the original DBs solves the issue.
Any ideas what could be happening to the new DBs added to the DAG? The DBs were mounted and copies were healthy.Hi ocean,
Thank you for your question.
Did you rebuild profile to check if the issue persist after we move mailbox to new DB?
Are there multiple DCs in your organization? And please make sure sync is no problems between DCs.
After we move mailbox, we could check if shared permission or Full Access Permission is missing on recipient mailbox.
We suggest we post the entire error information to
[email protected] for our troubleshooting.
If there are any questions regarding this issue, please be free to let me know.
Best Regard,
Jim
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Jim Xu
TechNet Community Support -
How do l create a new database in Oracle 10g Express
How do l create a new database in Oracle 10g Express, other than the one that is created on installation?
Hello,
You cannot create a second XE database on the same server.
But, Oracle database can support as many Schema as you want.
"Oracle database" is like "SQL Server Instance" and "Oracle Schema" is like "SQL Server database". I means by this shortcut that for
the end users accessing to different Schemas looks like accessing to different databases.
You can have several applications on the same database. Each application has its own Schema and Datafile (Tablespace) structure.
So on your XE database you can add a new Tablespace and create a new User/Schema as follows:
sqlplus /nolog
connect / as sysdba
create tablespace {color:red}new_tablespace_name{color}
extent management local autoallocate
SEGMENT SPACE MANAGEMENT AUTO
datafile '{color:red}complete_datafile_name{color}' size 100M autoextend on next 10M maxsize unlimited;
create user {color:red}new_schema_name{color} identified by {color:red}password{color}
default tablespace {color:red}new_tablespace_name{color}
temporary tablespace TEMP
quota unlimited on {color:red}new_tablespace_name{color}
grant connect, resource to {color:red}new_schema_name{color};Then you can connect to this new User/Schema as you defined it and create your new structure and load datas.
Hope it can help.
Best regards,
Jean-Valentin -
Please follow the scenario:
using C#
1) current database file name is DB20122013.
when user click on new year button
2)Create backup copy of current database
3)New database should create with all table(excluding table "Dailytemp" and "DailyMain") with data and database name as DB20132014.
Musakkhir Sayyed.Hi,
I hope, below stored procedure is useful for your scenario.
CREATE PROC Create_New_Database
( @DBNAME VARCHAR(550)
)AS
Test : Exec [Create_New_Database] @DBNAME='DB20122013'
BEGIN TRY
SET NOCOUNT ON
DECLARE @sql VARCHAR(MAX), @DBNAME_NEW VARCHAR(550),@num int
IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME) AND ISNUMERIC(RIGHT(@DBNAME,4))=1
BEGIN
SELECT @num= RIGHT(@DBNAME,4)
SELECT @DBNAME_NEW='DB'+CAST(@num AS VARCHAR(10))+''+CAST(@num+1 AS VARCHAR(10))
IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME_NEW)
BEGIN
SELECT @DBNAME_NEW+' database already exists'
END
ELSE
BEGIN
SET @sql='USE '+@DBNAME+' '+' backup database '+@DBNAME+' to disk = ''C:\'+@DBNAME+'.bak'' '
+' restore database '+@DBNAME_NEW+' from disk = ''C:\'+@DBNAME+'.bak'''
+' with move '''+@DBNAME+''' to ''C:\'+@DBNAME+'_data.mdf'' ,
move '''+@DBNAME+'_log'' to ''C:\'+@DBNAME+'_log.log'''
EXEC (@sql)
SET @sql=''
SET @sql=' USE '+@DBNAME_NEW+' IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''Dailytemp'')
BEGIN DROP TABLE Dailytemp END IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''DailyMain'')
BEGIN DROP TABLE DailyMain END '
EXEC (@sql)
END
END
ELSE
BEGIN
SELECT 'Database is now found or Database name does not mach the scenario'
END
SET NOCOUNT OFF
END TRY
BEGIN CATCH
DECLARE @ErrorMessage NVARCHAR(4000)
DECLARE @ErrorSeverity INT
DECLARE @ErrorState INT
SELECT @ErrorMessage = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(),@ErrorState = ERROR_STATE()
RAISERROR (@ErrorMessage,@ErrorSeverity,@ErrorState )
END CATCH;
GO
Regards,
RAMBHARATH -
How to create new database from backup.
Hi !
i have backup of a database, i do not want to restore, i want to create new database from the backup.
i am using oracle 11g xe.
yours sincerelyIf the Location of the datafiles is similar to that of source database then you can consider below steps
Create Oracle Service using oradim
set ORACLE_SID=NEWDB
oradim -new -sid NEWDB -intpwd passwordofthesys -startmode M
Connect to the RMAN
rman>rman target /
restore spfile/pfile and control file from backup
rman>restore spfile to pfile '_localtion of the initNEWDB.ora_' from '_location of the SPFILE Backuppiece_';
rman>startup nomount pfile='localtion of the initNEWDB.ora';
rman>restore controlfile from 'file location of the controlfile Backuppiece';
rman>alter database mount;
Catalog the RMAN backuppiece of source database
rman>catalog backuppiece '_location of the rman backuppiece of source database_ ';
resotore & recover database
rman>restore database;
rman>recover database;
open the database with reset logs
rman>alter database open resetlogs;
rman>create spfile from pfile;
rman>shutdown immediate;
rman>startup;
==================
If you have access to source database then you can clone using below rman command:
+rman target _<source database>_ auxiliary _<new database>_+
rman>duplication target database to _<your new database name>_;
==========
If the location of the datafiles and logfiles are different from source database then you need to add db_file_name_convert and log_file_name_convert to the pfile before starting the recovery process. -
How to create new database?
In the "Oracle ODBC Test" client app, when I try to create a database with ...
create database swett
... I get the error "ORA-01100: database already mounted" error.
Why? I can create a table with:
create table mytable ....
and it builds it in the SYS database. I can insert rows into it and select rows out of it OK.
I just don't know how to create a new database via ODBC. (There are probably ways to create a database via interactive GUI, but I need to do it via SQL statements for my app.)
My connection is with user "internal" into SID ORCL.
I'm using Oracle 8 Server on Netware 5 and the Windows 95 client on a Windows 98 machine.
nullHi,
I hope, below stored procedure is useful for your scenario.
CREATE PROC Create_New_Database
( @DBNAME VARCHAR(550)
)AS
Test : Exec [Create_New_Database] @DBNAME='DB20122013'
BEGIN TRY
SET NOCOUNT ON
DECLARE @sql VARCHAR(MAX), @DBNAME_NEW VARCHAR(550),@num int
IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME) AND ISNUMERIC(RIGHT(@DBNAME,4))=1
BEGIN
SELECT @num= RIGHT(@DBNAME,4)
SELECT @DBNAME_NEW='DB'+CAST(@num AS VARCHAR(10))+''+CAST(@num+1 AS VARCHAR(10))
IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME_NEW)
BEGIN
SELECT @DBNAME_NEW+' database already exists'
END
ELSE
BEGIN
SET @sql='USE '+@DBNAME+' '+' backup database '+@DBNAME+' to disk = ''C:\'+@DBNAME+'.bak'' '
+' restore database '+@DBNAME_NEW+' from disk = ''C:\'+@DBNAME+'.bak'''
+' with move '''+@DBNAME+''' to ''C:\'+@DBNAME+'_data.mdf'' ,
move '''+@DBNAME+'_log'' to ''C:\'+@DBNAME+'_log.log'''
EXEC (@sql)
SET @sql=''
SET @sql=' USE '+@DBNAME_NEW+' IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''Dailytemp'')
BEGIN DROP TABLE Dailytemp END IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''DailyMain'')
BEGIN DROP TABLE DailyMain END '
EXEC (@sql)
END
END
ELSE
BEGIN
SELECT 'Database is now found or Database name does not mach the scenario'
END
SET NOCOUNT OFF
END TRY
BEGIN CATCH
DECLARE @ErrorMessage NVARCHAR(4000)
DECLARE @ErrorSeverity INT
DECLARE @ErrorState INT
SELECT @ErrorMessage = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(),@ErrorState = ERROR_STATE()
RAISERROR (@ErrorMessage,@ErrorSeverity,@ErrorState )
END CATCH;
GO
Regards,
RAMBHARATH -
Database defragmentation or creating a new database?
Hi,
We want to reclaim the whitespace in our Exchange database, so do you recommend creating a second database and moving the mailboxes over there, or shall we go with offline defragmentation?
Database size: 400GB.
Mailboxes counts: 300.
Thoughts and recommendations?How much free space is in your database? If it's under 20%, then I'd stay as you are. If it's between 20% and 40%, it becomes a judgment call. If it's over 40%, then I'd create a new database and move the mailboxes - primarily because this
will allow your users to access unless their specific mailbox is being moved (and even then, the access I available for most of the move anyway), and you will both remove whitespace and eliminate any bad items you may have in the database. Just keep
in mind that when you move the mailboxes, any recoverable mailboxes will remain on the original database unless you re-associate them with accounts so you can move them. (And if you re-associate them with accounts and move them, their "deleted on"
date counter will be reset to the date you move them, if you delete them again.)
Taking the database offline so you can compact it will leave your users out of email access for the duration of the process. And if you have a DAG and multiple database copies, you will need to reseed them each after the process is complete.
If you create a new database, with associated copies on other servers, the move mailbox process will automatically reseed the database.
Ever since Exchange 2000, when multiple database were available on a single server, I have been leery of running an offline defrag. And since Exchange 2010 and its move requests, I am adamant against doing one - we reclaimed nearly 24TB in our 24 databases
(each was nearly 2 TB, and each is now under 1 TB), all using the process I suggest above.
Maybe you are looking for
-
I downloaded the new iOS 6 for my iphone 4. I have 2 iphones on my account and after the "upgrade" text messages go to both phones. When I send a text to my wife I recieve the same text and vise versa. How can I fix this?
-
When opening a pdf file it views as garbled letters. Can you help?
Having trouble. I recieved an email with an attached pdf file and when I try to open it, it appears all garbled. I have tried opening it on my ipad and it appears fine there. On my desktop, not so well. Can you help? I have upgraded to the most
-
WSUS on Server 2012 Essentials; Clients not Updating
Hi, I believe I have configured the server correctly,as per the numerous online instructions, but I just cannot get any of our clients to appear in the WSUS console. I'm attaching the contents of one of the client logs in case this can shed light on
-
Background Job, a same JOBCOUNT is assigned to multiple jobs
Hello, When I create multiple R/3 jobs by running my program, which uses series of BAPI functions such as: BAPI_XBP_JOB_OPEN BAPI_XBP_JOB_ADD_ABAP_STEP BAPI_XBP_JOB_CLOSE the generated JOBCOUNT for each R/3 jobs are the same, that is, not unique. Is
-
Link Between Creditnote and Contract
Hi All, i have no problems linking from an invoice back to the contract number, as I can use the BDI-SRC_HEADNO. However in a credit note, this field is populated with the invoice number that the credit relates to. Is there a table i can reference t