Need to load Firstname,lastname together through control file format
Hi All,
I need to load the data like first name,lastname as a single data column
for example
first name last name
Scott tiger
i want to load data like scott,tiger as a single data column.
like fullname
Scott,tiger
thanks
rioi
Hi,
If you want to load the file as csv with fields terminated by ',' then you need to enclose your first name and last name logether in the file with double quotes around them and use,
optionally enclosed by '"'
{code}
Like this in the file.
{code}
"scott,tiger"
{code}
Similar Messages
-
How do I skip footer records in Data file through control file of sql*loade
hi,
I am using sql*loader to load data from data file and i have written control file for it. How do i skip last '5' records of data file or the footer records to be skiped to read.
For first '5' records to be skiped we can use "skip" to achieve it but how do i acheive for last '5' records.
2)
Can I mention two data files in one control file if so what is the syntax(like we give INFILE Where we mention the path of data file can i mention two data file in same control file)
3)
If i have datafile with variable length (ie 1st record with 200 charcter, 2nd with 150 character and 3rd with 180 character) then how do i load data into table, i mean what will be the syntax for it in control file.
4)if i want to insert sysdate into table through control file how do i do it.
5) If i have variable length records in data file and i have first name then white space between then and then last name, how do i insert this value which includes first name and last name into single column of the table.( i mean how do you handle the white space in between first name and last name in data file)
Thanks in advance
ramYou should read the documentation about SQL*Loader.
-
Load data through control file
Hi ,
I am the first time loading data ,
My table definition:
<pre>
SQL> desc t;
Name Null? Type
ID NUMBER
NAME VARCHAR2(35)
And my csv file data:
id name
1 5.0315
2 3.2645
3 1.4975
4 -0.2695
5 -2.0365
And my control file:
load data
infile "c:\lddata.csv"
into table t truncate
fields terminated by ','
(id,
name
When I run in sql*plus I am getting this error:
SQL> @c:\lddata.ctl
SP2-0042: unknown command "load data" - rest of line ignored.
SP2-0734: unknown command beginning "infile "c:..." - rest of line ignored.
SP2-0734: unknown command beginning "into table..." - rest of line ignored.
SP2-0734: unknown command beginning "fields ter..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
4
</pre> --how to use this pre tag pls
How should over come this error.
pls,
Thanks,SQL*Loader has to run from OS command prompt as
<br>
<br>
sqlldr username/password control=<control_file>...
<br>
<br>
Read more here
<br>
<br>
[pre] and [/pre] tags -
Loading of master data through flat files
Hi
can anybody tell how to load master data through flat files.As for as my knowledge we load characteristic and attributes values first and then we load text and then hierarchy.
is it right or is there any procedure to load all values at a time.
saiHi ,
condition1:The sequence of columns in the transfer structure must correspond to the sequence of columns in your flat file
chk this help.sap link
http://help.sap.com/saphelp_nw04s/helpdata/en/c8/e92637c2cbf357e10000009b38f936/frameset.htm
Hope this helps you!!!!!!!
cheers,
Swapna.G -
Need to add a field for SEPA DME file format
Hi SAP Gurus,
I am working XML DME file format, i configured every thing properly But i am not able to Map below requirement
I have to bring Client ID(GATTGB22@|@) as a first field in file then only bank can process
This requirement we have to map this some where other than DMEE T. Code
Kindly Guide me on this
Client required Below file format
*GATTGB22@|@<?*xml version="1.0"; encoding="utf-8"?>
<Document xmlns='xmlns="namespaceURI"' xmlns:xsi="www.XXXXXXXXX.com"; xsi:schemaLocation="C:\Documents and Settings\xxxxxxxxxx.CORP\Desktop\SEPA.txt";>
<pain.001.001.02>;
<GrpHdr>
<MsgId>1000004409B</MsgId>
<CreDtTm>2011-04-06T11:11:50</CreDtTm>
<NbOfTxs>2</NbOfTxs>
<CtrlSum>2000.00;/CtrlSum>
<Grpg>MIXD</Grpg>
<InitgPty>
Now i am getting in below format
<?xml version="1.0"; encoding="utf-8"?>
<Document xmlns='xmlns="namespaceURI"' xmlns:xsi="www.XXXXXXXXXXx.Com"; xsi:schemaLocation="C:\Documents and Settings\XXXXXXXXX.CORP\Desktop\SEPA.txt";>
<pain.001.001.02>;
<GrpHdr>
<MsgId>1000004409B</MsgId>
<CreDtTm>2011-04-06T11:11:50</CreDtTm>
<NbOfTxs>2</NbOfTxs>
<CtrlSum>2000.00;/CtrlSum>
<Grpg>MIXD</Grpg>
<InitgPty>
Thanks in advanceHi,
check these enhancements
COPA0001 Enhancement for derivation in Profitability Analysis (C
COPA0002 Enhancement for valuation in Profitability Analysis (CO
COPA0003 Enhancement for assignment to profitability segment (CO
COPA0004 Enhancement for currency translation (CO-PA)
COPA0005 Enhancement for actual data update (CO-PA)
COPA0006 Enhancement for planning (CO-PA)
COPA0007 Enhancement for external data transfer (CO-PA)
i think you should get it provided you should follow proper procedure .
otherwise you need to create Implicit Enhancement spot.
regards
fareed -
SQL Loader Control File use of integer(n)
Dear Gentlemen,
I have an "ascii" file where some fields are binary of 2, 4 and 8 bytes. This file has to be loaded to oracle (8.1.7) Table using SQL Loader. According to SQL Loader documentation, for this case I must use as a field type: integer(n), where in my particular environment (Intel Windows), n may be 2, 4 or 8 according to the length of the field. Although I do not need to specify for integer(4); but, for integer(2) and integer(8), I need to specify it to get the rigth values. In the case of integer(2), it can be replaced by smallint; however for integer(8), I have to specify the number (8), and this form is not accepted as a sintactically correct statement by SQL Loader. Therefore I cannot load the correct data.
Could you please give some advice?.
Best regards,
Julio Porcel.Hi!
If it's not possible to implement through control file, load your data into some temporary table and then use power of SQL to do whatever you want with them.
Regards,
Andrew Velitchko
BrainBench MVP for Developer/2000
http://www.brainbench.com -
How to load data using Control File in BW 7
Hi All,
I have a requirement to load data in BW using control file. The development is done in in BW 7.0. In BW 3.5 in infopackage, there is an option of FILE IS ( Control File or Data File ). Please suggest how to simulate the same in BW 7.0
Regards,
VikramAny suggestions?
-
Use Control File to load data in BW7.0
Hi All,
I have a requirement to load data in BW using control file. The development is done in in BW 7.0. In BW 3.5 there is an option of FILE IS ( Control File or Data File ). Please suggest how to simulate the same in BW 7.0
Regards,
VikramHi Vikram,
Please have the contents of a sample control file. The file should be saved as ".TXT".
FILENAME = C:\test.csv
FILETYPE = CSV
LOCATION = C
FS = ,
ESCAPE = "
DECIMALPOINT = ,
1000SEPARATOR = .
RECCOUNT = 8
RECSIZE = 53
PACKETSIZE = 1000
Filename should contain the path of the CSV file
Filetype is CSV
location is 'C' for Workstation and 'A' for Application Server
FS contains field seperator ',' in our case
RECCOUNT contain the Rec. Count
RECSIZE is the Max DB size of the a single row ( this can be evaluated by the Total DB Size of a single Line of the Target BW Structure as well ).
The content of my sample test.csv are
1234567890,10,9999999999,,,15,01/01/2005
1234567891,20,9999999999,,,30,01/01/2005
1234567892,30,9999999999,,,0,01/01/2005
1234567893,10,9999999999,,,5,01/01/2005
1234567894,20,9999999999,,,6,01/01/2005
1234567895,40,9999999999,,,10,01/01/2005
1234567896,10,9999999999,,,5,02/01/2005
1234567897,20,9999999999,,,6,02/01/2005
Please let me know if there are any further concerns.
Regards,
Shrey
Edited by: Shrey SAP BI on Mar 8, 2010 4:13 PM -
SQL Loader and control file changes for different users
In the front end of my application I can select a data file and a control file, and load data to the table mentioned in .ctl file. Every user who logs in uses the same .ctl file and so loads onto the same table. Now I want the user to load data onto the table in his own schema. I can get the username of the user currently logged in and i want to insert it into that username.table. So can i copy the contents of the .ctl file into a variable, modify it into username.table in that string and pass that variable as a parameter to the sqlldr command instead of the .ctl file.
Or is there a better way how I can modify the same control file everytime to change tablename to username.tablename in .ctl file and pass to sqlldr to load data to table in local user schema table.
Thanks and RegardsThanks for the reply .. user do have their user credentials but only for the application ... but all users use a common loader and control file once they log into the application. So irrespective of which user is logged in he selects the same control file and loads to the same table mentioned in the control file .. i instead want user to be able to load to the table in control file but into his schema like username.tablename instead of just the tablename mentioned in .ctl file.
-
hi
i want to generate a control file that contains the column names in it.
the file should pick the column name from the table.
actually i want to move a table through sql loader. for that i require control file.I had done something similar. Take a look, you may need to amend to suit your requirement -
-- Dynamic CONTROL FILE created on table -> TEST
SQL> desc test
Name Null? Type
COL1 NUMBER
COL2 VARCHAR2(25)
COL3 DATE
COL4 VARCHAR2(100)
--- DDL scipts to read Table level definition and prepare CONTROL file dymanically
Drop Table Ops_Meta_Data;
Create Table Ops_Meta_Data
opn_module Varchar2(10)
,opn_step_id Number(2)
,Opn_Type Varchar2(100)
,opn_sub_rtns Number(2)
Insert Into Ops_Meta_Data Values ('MY_SYS', 1, 'SQL-TRUNCATE STAGE', 8);
Insert Into Ops_Meta_Data Values ('MY_SYS', 3, 'Loader', 8);
Drop Index Ops_Meta_Data_SRtns1;
Drop table Ops_Meta_Data_sub_Rtns;
Create Table Ops_Meta_Data_sub_Rtns
opn_module varchar2(10)
,opn_step_id Number(2)
,opn_type varchar2(20)
,opn_type_dtl_1 varchar2(20)
,opn_type_dtl_2 varchar2(20)
,rtn_sub_id Number(2)
,Tgt_Tbl_Nm Varchar2(30)
,Src_Nm Varchar2(255)
,Num_Cols Number(4)
CREATE INDEX Ops_Meta_Data_SRtns1 On Ops_Meta_Data_sub_Rtns (opn_module, opn_type)
Insert Into Ops_Meta_Data_sub_Rtns Values ('MY_SYS', 3, 'Loader', 'DELIMITED', ',', 1,
'TEST','/users/shailender/CTL/MY_SYS/METADATA/data_a.dat', 4);
Drop Index Ops_Meta_Data_colmap_1;
Drop Table Ops_Meta_Data_sub_Rtn_Col_Map;
Create Table Ops_Meta_Data_sub_Rtn_Col_Map
opn_module varchar2(10)
,opn_step_id Number(2)
,opn_type varchar2(20)
,rtn_sub_id Number(2)
,col_id Number(4)
,col_seq Number(4)
,col_pos_fm Number
,col_pos_to Number
,col_name Varchar2(30)
,col_data_type varchar2(30)
,col_function varchar2(255)
CREATE INDEX Ops_Meta_Data_colmap_1 On Ops_Meta_Data_sub_Rtn_Col_Map (opn_module, opn_type, rtn_sub_id)
Insert Into Ops_Meta_Data_sub_Rtn_Col_Map Values ('MY_SYS', 3, 'Loader', 1, 1, 1, Null, Null, 'COL1', NULL, '"TRIM(:COL1)"');
Insert Into Ops_Meta_Data_sub_Rtn_Col_Map Values ('MY_SYS', 3, 'Loader', 1, 2, 2, Null, Null, 'COL2', NULL, '"TRIM(:COL2)"');
Insert Into Ops_Meta_Data_sub_Rtn_Col_Map Values ('MY_SYS', 3, 'Loader', 1, 3, 3, Null, Null, 'COL3', 'DATE', 'DATE(14) ' ||
'''' || 'YYYYMMDDHH24MISS' || '''');
Insert Into Ops_Meta_Data_sub_Rtn_Col_Map Values ('MY_SYS', 3, 'Loader', 1, 4, 4, Null, Null, 'COL4', NULL, '"TRIM(:COL4)"');
---- Run script to dynamically generate the CONTROL (.ctl) file based on data set up in tables
clear screen
set serveroutput on size 999999
Declare
PROCEDURE PR_EXEC_METADATA (pTransId In Varchar2 ) IS
CURSOR c1 Is
Select opn_module
,opn_step_id
,opn_type
,opn_sub_rtns
From Ops_Meta_Data
Where opn_module = pTransId
Order By 2;
TYPE MyTab Is TABLE of VARCHAR2(255) INDEX By Binary_Integer;
MyTabCol MyTab;
pix Binary_Integer := 0;
iCtrPos Number := 0;
iHead Number(1) := 0;
Begin
pix := 0;
iCtrPos := 1;
For x In c1 LOOP
Declare
CURSOR c2 Is
Select a.Tgt_Tbl_Nm
,a.Src_Nm
,a.Num_Cols
,b.*
From Ops_Meta_Data_sub_Rtns a
,Ops_Meta_Data_sub_Rtn_Col_Map b
Where a.opn_module = x.opn_module
And a.opn_step_id = x.opn_step_id
And a.opn_type = x.opn_type
And b.opn_module = a.opn_module
And b.opn_step_id = a.opn_step_id
And b.opn_type = a.opn_type
And b.rtn_sub_id = a.rtn_sub_id
Order By a.opn_type, a.rtn_sub_id, b.col_seq;
Begin
pix := pix + 1;
For x2 In c2 LOOP
If ( x.opn_type = 'Loader' ) Then
If ( iHead = 0 ) Then
MyTabCol(pix) := ' ';
pix := pix + 1;
MyTabCol(pix) := 'Load Data';
pix := pix + 1;
MyTabCol(pix) := 'INFILE ' || chr(39) || x2.src_nm || chr(39);
pix := pix + 1;
MyTabCol(pix) := 'Into Table ' || x2.Tgt_Tbl_Nm;
pix := pix + 1;
MyTabCol(pix) := 'Append ';
pix := pix + 1;
MyTabCol(pix) := ' Fields Terminated By ' || chr(39) || ',' || chr(39) || ' Optionally Enclosed By '
||
chr(39) || '"' || chr(39);
pix := pix + 1;
MyTabCol(pix) := 'Trailing NullCols ';
pix := pix + 1;
MyTabCol(pix) := '( ';
pix := pix + 1;
iHead := 1;
End If;
If ( iCtrPos != x2.Num_Cols ) Then
MyTabCol(pix) := x2.col_name || ' ' || x2.col_function || ',';
Else
MyTabCol(pix) := x2.col_name || ' ' || x2.col_function;
pix := pix + 1;
MyTabCol(pix) := ') ';
iHead := 0;
iCtrPos := 0;
End If;
pix := pix + 1;
iCtrPos := iCtrPos + 1;
Else
If ( x.opn_type = 'SQL-TRUNCATE STAGE' ) Then
EXECUTE IMMEDIATE x2.col_function;
End If;
End If;
End Loop;
If ( x.opn_type = 'Loader' ) Then
iCtrPos := 0;
For i In MyTabCol.FIRST..MyTabCol.LAST LOOP
Dbms_Output.Put_Line (MyTabCol(i));
End Loop;
End If;
End;
End Loop;
End PR_EXEC_METADATA;
Begin
PR_EXEC_METADATA ('MY_SYS');
End;
---- OUTPUT of the SCRIPT
Load Data
INFILE '/users/shailender/CTL/MY_SYS/METADATA/data_a.dat'
Into Table TEST
Append
Fields Terminated By ',' Optionally Enclosed By '"'
Trailing NullCols
COL1 "TRIM(:COL1)",
COL2 "TRIM(:COL2)",
COL4 "TRIM(:COL4)", <---- Last ',' not required + Closing ")" missing
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.16
SQL>
Shailender Mehta -
How to get request_ Id in control file?
Hi,
I am using "fnd_global.conc_request_id" in control file to get request_Id
but always getting request_id value as '-1' while running the SQL *Loader program.
Any setup is missing here or is there any other way to get request_id in control file.
Thanks & Regards,
SagarikaPl see your duplicate post here - How to capture SQL *Loader program parameter value in control file?
Srini -
Hi,
I am interested in time of snapshot control file creation.
I have read that snapshot control file is created before the backup take the place. I have tried to take the simple rman>backup database command, but I have seen that snapshot control file is created after all backup process (I have seen the time of creating the snapshot control file).
Can anybody tell me about this? When the snapshot control file is created (before backup, maybe in the memory, because I can't see it on the file system).
Regards,
DraganHi,
I have read this sentence from Oracle Database 10g RMAN Backup & Recovery:
RMAN needs to get a consistent view of the control file when it sets out to make backup of every datafile. It only needs to know the most recent checkpoint information and file schematic information at the time backup begins. After the backup starts, RMAN needs this information to stay consistent for duration of the backup operation; in other words, it needs a read consistent view of the control file. With the constant updates from the database, this is nearly impossible - unless RMAN were to lock the control file for the duration of the backup. But that would mean the database could not advance checkpoint or switch logs or produce new archive logs. Impossible.
To get around this, RMAN uses the snapshot control file, an exact copy of your control file that is only used by RMAN during backup and resync operations. At the beginning of these operations, RMAN refreshes the snapshot control file from the actual control file, thus putting a momentary lock on the control file. Then, RMAN switches to the snapshot and uses it for the duration of the backup; in this way, it has read consistency without holding up database activity.
I must ask you if I am using control file only (not recovery catalog) what is happening when I am executing simple RMAN command> backup database;
You have said that I don't create snapshot of control file at that moment, only at the end of the backup process (I have also try it in my environment and snapshot is created at the end of the backup process).
How RMAN knows what to backup (which files), he takes this information from original control file (not from snapshot) I suppose.
What is happening when he finished backup of some backup set, he writes that information again in original control file I suppose.
And at the end of all process why he takes snapshot of control file (to backup control file from it, not from original control file, because control file is always changing, need to lock it). In that snapshot control file (and in the its backup) we will have the pointers on files that are made after the backup process started (is this true).
Thanks,
Regards
Dragan -
Renaming datafiles in control files with database mounted but not open
Hi,
I moved a database (physical files) from one server to another. I need to modify the contents of the control files since the directory structure of the servers are not the same (and I can't change that).
I know I can use ALTER DATABASE BACKUP CONTROLFILE TO TRACE to produce a script that I can than modify and run with the instance started, database mounted but not open, and that will recreate the control files. I don't want to do that.
I was also told I can modify the datafile entries in the control files by starting the instance, mounting but not opening the database. Then I can issue the (this is the part I need help with) ALTER DATABASE RENAME FILE <file1> to <file2>. When I tried this it complains that <file1> is not found. Obviously the command I used is not the right one,,, what is the right command for what I want to do.
Thanks,
GabrielMove all datafiles from one directory to an other without recreate controlfile :
SYS@DEMO102> select file_name from dba_data_files
2 union
3 select member from v$logfile
4 union
5 select file_name from dba_temp_files
6 union
7 select name from v$controlfile;
FILE_NAME
E:\ORACLE\ORADATA\DEMO102C\CONTROL01.CTL
E:\ORACLE\ORADATA\DEMO102C\CONTROL02.CTL
E:\ORACLE\ORADATA\DEMO102C\CONTROL03.CTL
E:\ORACLE\ORADATA\DEMO102C\EXAMPLE01.DBF
E:\ORACLE\ORADATA\DEMO102C\REDO01.LOG
E:\ORACLE\ORADATA\DEMO102C\REDO02.LOG
E:\ORACLE\ORADATA\DEMO102C\REDO03.LOG
E:\ORACLE\ORADATA\DEMO102C\SYSAUX01.DBF
E:\ORACLE\ORADATA\DEMO102C\SYSTEM\SYSTEM01.DBF
E:\ORACLE\ORADATA\DEMO102C\TBS102_1.DBF
E:\ORACLE\ORADATA\DEMO102C\TBS102_2.DBF
E:\ORACLE\ORADATA\DEMO102C\TEMP01.DBF
E:\ORACLE\ORADATA\DEMO102C\UNDOTBS01.DBF
E:\ORACLE\ORADATA\DEMO102C\USERS01.DBF
14 rows selected.
SYS@DEMO102> create pfile='E:\oracle\admin\DEMO102\pfile\pfile102.ora' from spfile;
File created.
SYS@DEMO102> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.Here, I move all datafiles mentionned above, and modify my pfile for new controlfile directory. Then :
SYS@DEMO102> startup pfile=E:\oracle\admin\DEMO102\pfile\pfile102.ora
ORACLE instance started.
Total System Global Area 272629760 bytes
Fixed Size 1288940 bytes
Variable Size 163579156 bytes
Database Buffers 100663296 bytes
Redo Buffers 7098368 bytes
Database mounted. --Note that we are in mount state
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: 'E:\ORACLE\ORADATA\DEMO102C\SYSTEM\SYSTEM01.DBF'
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\USERS01.DBF' to 'E:\ORACLE\ORADATA\demo102\USERS01.DBF';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\SYSAUX01.DBF' to 'E:\ORACLE\ORADATA\demo102\SYSAUX01.DBF';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\UNDOTBS01.DBF' to 'E:\ORACLE\ORADATA\demo102\UNDOTBS01.DBF';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\SYSTEM\SYSTEM01.DBF' to 'E:\ORACLE\ORADATA\demo102\SYSTEM\SYSTEM01.DBF';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\EXAMPLE01.DBF' to 'E:\ORACLE\ORADATA\demo102\EXAMPLE01.DBF';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\TBS102_1.DBF' to 'E:\ORACLE\ORADATA\demo102\TBS102_1.DBF';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\TBS102_2.DBF' to 'E:\ORACLE\ORADATA\demo102\TBS102_2.DBF';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\REDO01.LOG' to 'E:\ORACLE\ORADATA\demo102\REDO01.LOG';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\REDO02.LOG' to 'E:\ORACLE\ORADATA\demo102\REDO02.LOG';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\REDO03.LOG' to 'E:\ORACLE\ORADATA\demo102\REDO03.LOG';
Database altered.
SYS@DEMO102> alter database rename file 'E:\ORACLE\ORADATA\DEMO102C\TEMP01.DBF' to 'E:\ORACLE\ORADATA\demo102\TEMP01.DBF';
Database altered.
SYS@DEMO102> alter database open;
Database altered.
SYS@DEMO102> create spfile from pfile='E:\oracle\admin\DEMO102\pfile\pfile102.ora';
File created.
SYS@DEMO102> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS@DEMO102> startup
ORACLE instance started.
Total System Global Area 272629760 bytes
Fixed Size 1288940 bytes
Variable Size 163579156 bytes
Database Buffers 100663296 bytes
Redo Buffers 7098368 bytes
Database mounted.
Database opened.
SYS@DEMO102> select file_name from dba_data_files
2 union
3 select member from v$logfile
4 union
5 select file_name from dba_temp_files
6 union
7 select name from v$controlfile;
FILE_NAME
E:\ORACLE\ORADATA\DEMO102\CONTROL01.CTL
E:\ORACLE\ORADATA\DEMO102\CONTROL02.CTL
E:\ORACLE\ORADATA\DEMO102\CONTROL03.CTL
E:\ORACLE\ORADATA\DEMO102\EXAMPLE01.DBF
E:\ORACLE\ORADATA\DEMO102\REDO01.LOG
E:\ORACLE\ORADATA\DEMO102\REDO02.LOG
E:\ORACLE\ORADATA\DEMO102\REDO03.LOG
E:\ORACLE\ORADATA\DEMO102\SYSAUX01.DBF
E:\ORACLE\ORADATA\DEMO102\SYSTEM\SYSTEM01.DBF
E:\ORACLE\ORADATA\DEMO102\TBS102_1.DBF
E:\ORACLE\ORADATA\DEMO102\TBS102_2.DBF
E:\ORACLE\ORADATA\DEMO102\TEMP01.DBF
E:\ORACLE\ORADATA\DEMO102\UNDOTBS01.DBF
E:\ORACLE\ORADATA\DEMO102\USERS01.DBF
14 rows selected.
SYS@DEMO102> Nicolas. -
Hi gurus! Need help
I've lost all my control files + i want to rename my database from testrman to ntstrman. But I am getting an error
ORA 01503 create control file failed
ORA 01160 file is not a daatafile
dataf file is '/oradata/ntstrman/temp01.dbf'
Can't you please look throw and tell me what am i doing wrong? Thanks.
create_control.sql:
create controlfile set database ntstrman
resetlogs
maxlogfiles 50
maxlogmembers 3
maxloghistory 400
maxdatafiles 200
maxinstances 6
archivelog
logfile
group 1 ('/oradata/ntstrman/redo01.log'),
group 2 ('/oradata/ntstrman/redo02.log'),
group 3 ('/oradata/ntstrman/redo03.log')
datafile
'/oradata/ntstrman/sysaux01.dbf',
'/oradata/ntstrman/system01.dbf',
'/oradata/ntstrman/temp01.dbf',
'/oradata/ntstrman/undotbs01.dbf',
'/oradata/ntstrman/users01.dbf'
initntstrman.ora:
testrman.__db_cache_size=92274688
ntstrman.__db_cache_size=100663296
testrman.__java_pool_size=4194304
testrman.__large_pool_size=4194304
ntstrman.__large_pool_size=4194304
testrman.__shared_pool_size=62914560
ntstrman.__shared_pool_size=54525952
testrman.__streams_pool_size=0
*.audit_file_dest='/oradata/admin/ntstrman/adump'
*.background_dump_dest='/oradata/admin/ntstrman/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/oradata/ntstrman/control01.ctl','/oradata/ntstrman/control02.ctl','/oradata/ntstrman/control03.ctl'
*.core_dump_dest='/oradata/admin/ntstrman/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='ntstrman'
*.db_recovery_file_dest='/oradata/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=ntstramnXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/oradata/admin/ntstrman/udump'
Edited by: Junior Oracle DBA on Oct 20, 2008 3:37 PMHi...
Please mention the size of the redolog files..which you haven't and secondly, tempfile is not be added in the control file script, create the temporary tablespace later after opening the database
1. Change the control_files parameter in the pfile, which you have done.
2. startup nomount pfile='pfile/location/name/';
3.
create controlfile set database ntstrman resetlogs archivelog
maxlogfiles 50
maxlogmembers 3
maxloghistory 400
maxdatafiles 200
maxinstances 6
logfile
group 1 '/oradata/ntstrman/redo01.log' SIZE xxxM,
group 2 '/oradata/ntstrman/redo02.log' SIZE xxxM,
group 3 '/oradata/ntstrman/redo03.log' SIZE xxxM
datafile
'/oradata/ntstrman/sysaux01.dbf',
'/oradata/ntstrman/system01.dbf',
'/oradata/ntstrman/undotbs01.dbf',
'/oradata/ntstrman/users01.dbf'
;4. alter database open resetlogs
5. create temporary tablespace tempfile 'temp/file/location/name' size xxxM ;
Link: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5003.htm#SQLRF01203]
HTH
Anand -
Hi frds,
I have fetched the TXT files through FTP from different location.All the file got loaded in my Local drive into single folder
And in that Folders i will have these kind of Files
ACTEST00001_20141028_0405_INV.TXT
ACTEST00001_20141029_0405_SL.TXT
ACTEST00001_20141028_0405_SV.TXT
ACTEST00001_20141029_0405_SV_APPT.
And i need to load these only ''20141029'' files only.
How can i do this in SSIS packege i need to skip rest all the files.
I have attached the Structure of my SSIS packege.
Please go through it and suggest me the solution please.
Arunraj KumarSee
this and
this.
Andy Tauber
Data Architect
The Vancouver Clinic
Website | LinkedIn
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
"Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.
Maybe you are looking for
-
Best way to do this: repartition existing imac internal drive and restore
Hi all, I am trying to solve this problem: flaky bootcamp/reinstall of XP/reinstall of OSX yet keep existing apps working in the process. Experience level: 4 years on a mac, decades PC sys admin. History: http://discussions.apple.com/thread.jspa?thre
-
PC Shutting Down when Rendering
I have used Premiere for many years/versions now and have had a persistent problem of the computer shutting down while rendering, regardless of the system. My current computer is a laptop (Clevo 900DF for those familiar with that brand) with the foll
-
Mat****a DVD-RAM-841S - Failure and disappeared icon - Code 19
Hi. I am hoping some one can help asap as its a massive problem. I turned my A series dual core laptop on to find no DVD drive present, no icons, and nothing working. So i checked the device drivers to find this problem: *Windows cannot start this ha
-
Address Book in Lion Server....Read Only
Hi, Is there a way on how to making the addressbook server read only (meaning can't be edited)? Last year, I setup a Lion Server for a company that will serve as an Addressbook server for them and at the same time configuring their devices via Profil
-
hi, can any body guide me how can i put a map in the obiee dashboard ie by clicking a region in the map,should show all details of the region.what are the steps to be followed to achieve this? thanks