Date, file name, the stamp
I looked for hours to get a script that will work in Illustrator CS4 that will put a block of text on the page identification:
Date, file name and the user name on the document (Council of art)
I'm not versed in the scripts. Can someone help me?
You just want to give this review. IM yet to learn this JavaScript stuff and I'm sure it can be cleaned.
#target illustrator
main() {} function
If (app.documents.length == 0) {}
Alert ("Please have an"Illustrator"document before running this script.");
return;
}
var app.activeDocument = docRef;
with (docRef) {}
If (saved == false) save();
var filePath = path;
If (inCollection (linked text frames, "cartridge-file'")) {}
frameA var = textFrames.getByName('titleblock-file');
frameA.contents = name;
}
If (inCollection (linked text frames, "cartridge-path '")) {}
frameB var = textFrames.getByName('titleblock-path');
frameB.contents = unescape (fullName);
}
If (inCollection (linked text frames, "cartridge-date'")) {}
frameC var = textFrames.getByName('titleblock-date');
If (filePath.created! = null) {}
var creatDate = filePath.created.toString ().split(' ');
var creatDate = creatDate [1] + "" + creatDate [2] + "" + creatDate [3];
frameC.contents = creatDate;
}
}
If (inCollection (linked text frames, "cartridge-revised'")) {}
Var box = textFrames.getByName('titleblock-revised');
If (filePath.modified! = null) {}
ModDate var = filePath.modified.toString ().split(' ');
Var ModDate = ModDate [1] + ' ' + ModDate [2] + ' ' + ModDate [3];
frameD.contents = ModDate;
}
}
If (inCollection (linked text frames, ' titleblock-editor "")) {}
War-horse var = textFrames.getByName('titleblock-editor');
frameE.contents = "Mark Larsen"
}
}
}
main();
function inCollection (ObjArr, "stringname") {}
var x = false;
for (var i = 0; i)< objarray.length;="" i++)="">
If (ObjArr [i] .name == stringname) x = true;
}
Return x;
}
Tags: Illustrator
Similar Questions
-
Tablespace with a data file name in double and the directory added
Version Oracle 11.1.0.7
AIX platform
I have exactly the same directory for the tablespace even a tablespace with 2 files with exactly the same name.
I don't think it was possible for Oracle create two data files in the same directory with exactly the same data file for a tablespace name.
The difference between the two seems to be the sizes - one is 10G, the other is 10 m autoextend on but with maximum size is equal to the size of create.
It is not possible to table either both are full.
Please notify.
Thank you.You have a character that is hidden in the name of the file. Use ls for your operating system which shows the special characters (ls - lb or something, man ls).
-
existing file of data created with the data file name
Hi Experts
We accidentally created a data file with the same name in the same place
on OS lavelTABLESPACE_NAME FILE_NAME FILE_ID STATUS ONLINE_ size in MB AUT maxbytes in MB ------------------------- ------------------------------------------------------- ---------- --------- ------- ---------- --- -------------- WP_DATA /NEXWPLPR/dbase/wpdata/wp_data01.dbf 8 AVAILABLE ONLINE 32767.9844 YES 32767.9844 WP_DATA /NEXWPLPR/dbase/wpdata/wp_data02.dbf 12 AVAILABLE RECOVER WP_DATA /NEXWPLPR/dbase/wpdata/wp_data02.dbf 11 AVAILABLE ONLINE 1000 NO 0
Please suggest how we can solve the problem?-rw-r----- 1 oracle dba 1048584192 Oct 21 12:44 wp_data02.dbf -rw-r----- 1 oracle dba 1048584192 Oct 21 13:09 wp_data02.dbf -rw-r----- 1 oracle dba 34359730176 Oct 21 13:10 wp_data01.dbf
Database: 10g
OS: linux
Concerning
Rahul
Rahul
Published by: 825075 on October 21, 2011 05:25One of them is 2 characters at least other two. You have twice ascii code 32, it's space.
What happens if you run now:select file_id,file_name from dba_data_files where file_name='/NEXWPLPR/dbase/wpdata/wp_data02.dbf ';
Notice the 2 spaces at the end.
Nicolas.
-
accidentally create data file with the same name but different location
Hi all
I was accidentally create data file in the tablespace with the same name but in another location.
/ U03/DataFile/REKON65. DBF
new data file: / u04/datafile/REKON65. DBF
My question: what happens with data/u03/datafile/REKON65 file. DBF? the data inside/u03/datafile/REKON65. DBF went?
Thank youIndra says:
Hi allI was accidentally create data file in the tablespace with the same name but in another location.
/ U03/DataFile/REKON65. DBF
new data file: / u04/datafile/REKON65. DBF
My question: what happens with data/u03/datafile/REKON65 file. DBF?
nothing
the data inside/u03/datafile/REKON65. DBF went?
not gone
-
With the help of El Capitan, in all the applications, "File > Open" all groups by date (see red circles below). Icons by date, date, genre, date, all by date, file names. I hate this. How can I do view by NAME, as the previous OSX?
You have chosen to organize the display by date. Change votes to zero, or name.
Reorganize the key one above "day" is in yesterday on your screenshot.
-
How do you change installation date file name IE 20130618_293.jpg to all IMG293.jpg
If it's just a personal folder, and then right-click on the file, select Rename , then change the name to what you want and press enter. Avoid changing the file extension (.jpg in this case) as it may cause problems with it being recognized as the wrong file type.
-
ORA-19846: cannot read the header of the data file of the remote site 21
Hello
I have a situation or I can say a scenario. It is purely for testing base. Database is on 12.1.0.1 on a Linux box using ASM (OMF).
Standby is created on another machine with the same platform and who also uses ASM (OMF) and is in phase with the primary. Now, suppose I have create a PDB file on the primary of the SEED and it is created successfully.
After that is a couple of log, do it again passes to the waiting, but MRP fails because of naming conventions. Agree with that! Now, on the primary, I remove the newly created PDB (coward the PDB newly created). Once again a couple of switches of newspapers which is passed on to the wait. Of course, the wait is always out of sync.
Now, how to get back my watch in sync with the primary? I can't roll method until the required data (new PDB) file does not exist on the main site as well. I get the following error:
RMAN > recover database service prim noredo using backupset compressed;
To go back to November 8, 15
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 70 = device = DISK stby type instance
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at the 18:55:32 08/11/2015
ORA-19846: cannot read the header of the data file of the remote site 21
The clues on how to I go ahead? Of course, recreating the eve is an option as its only based on test, but I don't want recreation.
Thank you.
I tried like below:
1 a incremental backup of the primary of the CNS where off the eve also taken primary backup controlfile as Eve format.
2 copy the backup of the watch parts, catalogged them on the day before.
3 recovered Eve with noredo option - it fails here with the same error pointing to the 21 data file.
OK, understood. Try not to get back the day before first, rather than restore the controlfile and then perform the restoration.
Make it like:
1. take incremental backup of primary SNA, also ensures the backup controlfile format.
2. copy pending, get the location of the data file (names) by querying v$ datafile on the eve. Restore the controlfile ensures from the backup controlfile you took on primary and mount.
3. Since you are using OMF, the path of primary and standby data file will be different. (
/ ). If you require catalog data from the database files pending. (Reason: you restore controlfile from elementary to step 2, which takes place from the main access road). Use the details that you obtained in step 2 and catalog them.
4. turn the database copy by RMAN. (RMAN > switch database to copy ;))
5 Catalog backup items that you copied in step 2.
6. recover the standby database using 'noredo' option.
7. finally start the MRP. This should solve your problem.
The reason I say this works is because here, you restore the controlfile to primary first, which will not have details 21, datafile, and then you are recovering. So it must succeed.
In the previous method, you tried to first collect all the day before, and then restore the controlfile. While remedial classes, always watch seeks datafile 21 as he controlfile is not yet updated.
HTH
-Jonathan Rolland
-
Data files to the tablespace sysaux listed several times v $ datafile
When I run the query - select name, number of status from v$ datafile;
the data files for system tablespaces are included several times.
For example, for sysaux, output a below entries. Why is this?
It is the same with the space of system tables and users.
The configuration is Oracle 12 c
I've used this in earlier versions of oracle, but this is something new that I am observing with 12 c.
+ ASM_DG/gdb/DataFile/SYSAUX.269.838407323, 3
+ ASM_DG/gdb/DD7C48AA5A4404A2E04325AAE80A403C/DataFile/SYSAUX.273.838407639, 7
+ ASM_DG/gdb/F159D742BCE602C0E0438B59D10A581B/DataFile/SYSAUX.258.838409993, 10
When I use the query-
SELECT FILE_NAME, BLOCKS, NOM_TABLESPACE
FROM DBA_DATA_FILES;
Then only the single entry appears
+ ASM_DG/gdb/DataFile/SYSAUX.269.838407323, 108800, SYSAUX
Any help will be great.
Hello
It's the new architecture shared in action.
You get a sysaux/system for each plug-in database data file, but the views dba only show data for the current container.
This is probably the biggest architectural change I've seen in oracle (and I worked with her since 7.2...)
I recommend you to read the oracle documentation (and then read them again when it totally confuses you until you get it).
See you soon,.
Rich
-
When OMF add the data file in the tablespace
Hi friends,
We use oracle 11.2 with CMS (oracle managed file) for the database on the linux platform. the parameter - DB_CREATE_FILE_DEST had been set. at the present time, we received a message from global warming this tablespace criterion is 85% full.
According to the document of the oracle, OMF auto will add a data file in the tablespace tast. more than a week, I do not see any data file has been added by OMF.
I want to know when OMF adds the data file in the tablespace? 85% or 95% or some (parameter) setting this action?
Thank you
newdba
OMF does not automatically add a new data file. You must explicitly add a new data file with the ALTER TABLESPACE ADD DATAFILE command tbsname.
What is OMF is to provide a Unique name and a default size (100 MB) for the data file. That is why the ALTER TABLESPACE... Command ADD DATAFILE that you run didn't need to specify the file size or file name.
Hemant K Collette
-
When loading, error: field in the data file exceeds the maximum length
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Solaris: 11.2.0.3.0 - Production Version
NLSRTL Version 11.2.0.3.0 - Production
I am trying to load a table, small size (110 lines, 6 columns). One of the columns, called NOTES is less error when I run the load. That is to say that the size of the column exceeds the limit max. As you can see here, the column of the table is equal to 4000 bytes)
CREATE TABLE NRIS. NRN_REPORT_NOTES
(
Sys_guid() NOTES_CN VARCHAR2 (40 BYTE) DEFAULT is NOT NULL.
REPORT_GROUP VARCHAR2 (100 BYTE) NOT NULL,
POSTCODE VARCHAR2 (50 BYTE) NOT NULL,
ROUND NUMBER (3) NOT NULL,
VARCHAR2 (4000 BYTE) NOTES,
LAST_UPDATE TIMESTAMP (6) WITH ZONE SCHEDULE systimestamp NOT NULL default
)
TABLESPACE USERS
RESULT_CACHE (DEFAULT MODE)
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
80K INITIAL
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
DEFAULT FLASH_CACHE
DEFAULT CELL_FLASH_CACHE
)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
I did a little investigating, and it does not match.
When I run
Select max (lengthb (notes)) in NRIS. NRN_REPORT_NOTES
I got a return of
643
.
Which tells me that the larger size of this column is only 643 bytes. But EACH insert is a failure.
Here is the header of the file loader and first couple of inserts:
DOWNLOAD THE DATA
INFILE *.
BADFILE '. / NRIS. NRN_REPORT_NOTES. BAD'
DISCARDFILE '. / NRIS. NRN_REPORT_NOTES. DSC"
ADD IN THE NRIS TABLE. NRN_REPORT_NOTES
Fields ended by '; '. Eventually framed by ' |'
(
NOTES_CN,
REPORT_GROUP,
Zip code
ALL ABOUT NULLIF (R = 'NULL'),
NOTES,
LAST_UPDATE TIMESTAMP WITH TIME ZONE ' MM/DD/YYYY HH24:MI:SS. FF9 TZR' NULLIF (LAST_UPDATE = 'NULL')
)
BEGINDATA
| E2ACF256F01F46A7E0440003BA0F14C2; | | DEMOGRAPHIC DATA |; A01003; | 3 ; | demographic results show that 46% of visits are made by women. Among racial and ethnic minorities, the most often encountered are native American (4%) and Hispanic / Latino (2%). The breakdown by age shows that the Bitterroot has a relatively low of children under 16 (14%) proportion in the population of visit. People over 60 represent about 22% of visits. Most of the visitation comes from the region. More than 85% of the visits come from people who live within 50 miles. | ; 29/07/2013 0, 16:09:27.000000000 - 06:00
| E2ACF256F02046A7E0440003BA0F14C2; | | DESCRIPTION OF THE VISIT; | | A01003; | 3 ; | most visits to the Bitterroot are relatively short. More than half of the visits last less than 3 hours. The median duration of visiting sites for the night is about 43 hours, or about 2 days. The average Wilderness visit lasts only about 6 hours, although more than half of these visits are shorter than the duration of 3 hours. Most of the visits come from people who are frequent visitors. Over thirty percent are made by people who visit between 40 and 100 times a year. Another 8% of visits from people who say they visit more than 100 times a year. | ; 29/07/2013 0, 16:09:27.000000000 - 06:00
| E2ACF256F02146A7E0440003BA0F14C2; | | ACTIVITIES |. A01003; | 3 ; | most often reported the main activity is hiking (42%), followed by alpine skiing (12%) and hunting (8%). More than half of the report visits participating in the relaxation and the display landscape. | ; 29/07/2013 0, 16:09:27.000000000 - 06:00
Here's the full start of log loader, ending after the return of the first row. (They ALL say the same error)
SQL * Loader: Release 10.2.0.4.0 - Production Thu Aug 22 12:09:07 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Control file: NRIS. NRN_REPORT_NOTES. CTL
Data file: NRIS. NRN_REPORT_NOTES. CTL
Bad File:. / NRIS. NRN_REPORT_NOTES. BAD
Discard File:. / NRIS. NRN_REPORT_NOTES. DSC
(Allow all releases)
Number of loading: ALL
Number of jump: 0
Authorized errors: 50
Link table: 64 lines, maximum of 256000 bytes
Continuation of the debate: none is specified
Path used: classics
NRIS table. NRN_REPORT_NOTES, loaded from every logical record.
Insert the option in effect for this table: APPEND
Column Position Len term Encl. Datatype name
------------------------------ ---------- ----- ---- ---- ---------------------
FIRST NOTES_CN *; O (|) CHARACTER
REPORT_GROUP NEXT *; O (|) CHARACTER
AREA CODE FOLLOWING *; O (|) CHARACTER
ROUND NEXT * ; O (|) CHARACTER
NULL if r = 0X4e554c4c ('NULL' character)
NOTES NEXT * ; O (|) CHARACTER
LAST_UPDATE NEXT *; O (|) DATETIME MM/DD/YYYY HH24:MI:SS. FF9 TZR
NULL if LAST_UPDATE = 0X4e554c4c ('NULL' character)
Sheet 1: Rejected - error in NRIS table. NRN_REPORT_NOTES, information ABOUT the column.
Field in the data file exceeds the maximum length.
I don't see why this should be failed.
Hello
the problem is bounded by default, char (255) data... Very useful, I know...
you need two, IE sqlldr Hat data is longer than this.
so change notes to notes char (4000) you control file and it should work.
see you soon,
Harry
-
sqlldr question: field in the data file exceeds the maximum length
Hello friends,
I am struggling with a load of simple data using sqlldr and hoping someone can guide me.
Ref: I use Oracle 11.2 on Linux 5.7.
===========================
Here is my table:
When I try to load a text file data using sqlldr, I get the following errors on some files that do not charge.SQL> desc ntwkrep.CARD Name Null? Type ----------------------------------------------------------------- -------- ------------------ CIM_DESCRIPTION VARCHAR2(255) CIM_NAME NOT NULL VARCHAR2(255) COMPOSEDOF VARCHAR2(4000) DESCRIPTION VARCHAR2(4000) DISPLAYNAME NOT NULL VARCHAR2(255) LOCATION VARCHAR2(4000) PARTOF VARCHAR2(255) *REALIZES VARCHAR2(4000)* SERIALNUMBER VARCHAR2(255) SYSTEMNAME NOT NULL VARCHAR2(255) TYPE VARCHAR2(255) STATUS VARCHAR2(255) LASTMODIFIED DATE
Example:
=======
Sheet 1: Rejected - error on the NTWKREP table. CARD, column REALIZES.
Field in the data file exceeds the maximum length
Looking at the actual data and count the characters for the data of the "CONSCIOUS" column, I see that it is basically a little more of 1000 characters.
So try various ideas to solve the problem, I tried to change to "tank" nls_length_semantics and re-create the table, but this does not always helped and always got the same errors of loading data on the same lines.
Then, I changed back to byte nls_length_semantics and recreated the table again.
This time, I have changed the table manually as:
Yet once, loading data failed with the same error on the same lines.SQL> ALTER TABLE ntwkrep.CARD MODIFY (REALIZES VARCHAR2(4000 char)); Table altered. SQL> desc ntwkrep.card Name Null? Type ----------------------------------------------------------------- -------- -------------------------------------------- CIM_DESCRIPTION VARCHAR2(255) CIM_NAME NOT NULL VARCHAR2(255) COMPOSEDOF VARCHAR2(4000) DESCRIPTION VARCHAR2(4000) DISPLAYNAME NOT NULL VARCHAR2(255) LOCATION VARCHAR2(4000) PARTOF VARCHAR2(255) REALIZES VARCHAR2(4000 CHAR) SERIALNUMBER VARCHAR2(255) SYSTEMNAME NOT NULL VARCHAR2(255) TYPE VARCHAR2(255) STATUS VARCHAR2(255) LASTMODIFIED DATE
So, this time, I thought that I would try to change the data type of column in a clob (navigation), and again, it is still impossible to load on the same lines.
Any ideas?SQL> desc ntwkrep.CARD Name Null? Type ----------------------------------------------------------------- -------- ----------------------- CIM_DESCRIPTION VARCHAR2(255) CIM_NAME NOT NULL VARCHAR2(255) COMPOSEDOF VARCHAR2(4000) DESCRIPTION VARCHAR2(4000) DISPLAYNAME NOT NULL VARCHAR2(255) LOCATION VARCHAR2(4000) PARTOF VARCHAR2(255) REALIZES CLOB SERIALNUMBER VARCHAR2(255) SYSTEMNAME NOT NULL VARCHAR2(255) TYPE VARCHAR2(255) STATUS VARCHAR2(255) LASTMODIFIED DATE
Here's a copy of the first line of data that fails to load each time any how to change the column 'TRUE' in the table.
Finally, for reference, here's the controlfile I use.other(1)`CARD-mes-fhnb-bldg-137/1` `other(1)`CARD-mes-fhnb-bldg-137/1 [other(1)]`HwVersion:C0|SwVersion:12.2(40)SE|Serial#:FOC1302U2S6|` Chassis::CHASSIS-mes-fhnb-bldg-137, Switch::mes-fhnb-bldg-137 ` Port::PORT-mes-fhnb-bldg-137/1.23, Port::PORT-mes-fhnb-bldg-137/1.21, Port::PORT-mes-fhnb-bldg-137/1.5, Port::PORT-mes-fhnb-bldg-137/1.7, Port::PORT-mes-fhnb-bldg-137/1.14, Port::PORT-mes-fhnb-bldg-137/1.12, Port::PORT-mes-fhnb-bldg-137/1.6, Port::PORT-mes-fhnb-bldg-137/1.4, Port::PORT-mes-fhnb-bldg-137/1.20, Port::PORT-mes-fhnb-bldg-137/1.22, Port::PORT-mes-fhnb-bldg-137/1.15, Port::PORT-mes-fhnb-bldg-137/1.13, Port::PORT-mes-fhnb-bldg-137/1.18, Port::PORT-mes-fhnb-bldg-137/1.24, Port::PORT-mes-fhnb-bldg-137/1.26, Port::PORT-mes-fhnb-bldg-137/1.17, Port::PORT-mes-fhnb-bldg-137/1.11, Port::PORT-mes-fhnb-bldg-137/1.2, Port::PORT-mes-fhnb-bldg-137/1.8, Port::PORT-mes-fhnb-bldg-137/1.10, Port::PORT-mes-fhnb-bldg-137/1.16, Port::PORT-mes-fhnb-bldg-137/1.9, Port::PORT-mes-fhnb-bldg-137/1.3, Port::PORT-mes-fhnb-bldg-137/1.1, Port::PORT-mes-fhnb-bldg-137/1.19, Port::PORT-mes-fhnb-bldg-137/1.25 `Serial#:FOC1302U2S6`mes-fhnb-bldg-137`other(1)
load data infile '/opt/EMC/data/out/Card.txt' badfile '/dbadmin/data_loads/logs/Card.bad' append into table ntwkrep.CARD fields terminated by "`" TRAILING NULLCOLS ( CIM_DESCRIPTION, CIM_NAME, COMPOSEDOF, DESCRIPTION, DISPLAYNAME, LOCATION, PARTOF, REALIZES, SERIALNUMBER, SYSTEMNAME, TYPE, STATUS, LASTMODIFIED "sysdate" )
The default data in sqlldr type is char (255)
Modify your control file following which I think should work with VARCHAR2 (4000) REALIZES:
COMPOSEDOF char(4000), DESCRIPTION char(4000), LOCATION char(4000), REALIZES char(4000),
-
How do I reduce the data file after the moving images to another data file
All,
I did a test of simepl to see how should I reduce my data file after the transfer of the objects thereof.
I had an image in my data file USER_image, which is about 9 GB in size. I created the new data under the new tablpespace file and moved all the images in this new space of tables. So my old tablespace of image with its data file is now empty. At least there is not all user objects.
Now I tried to resize the old datafile (USER_image) to a smaller value, but I keep this error
"ORA-03297: file contains data beyond the value required to RESIZE.
The file size is 9 GB and I tried to resize to 8 GB but it still does not allow me.
Is it possible to resize a data file after moving all its purpose?
I'm something wrong or missing something?
Thanks in advance.If you old image tablespace is indeed empty (you need to run a statement against DBA_SEGMENTS to check) then you can bring it, data files included.
After this, you can create a 'new' tablespace with the old name and desired data file sizes. -
ORA-01111: 129 data file name is unknown
I have a 10.2.0.1 databases and a watch on another server on which recovery logs apply every 15 minutes.
I have added a new file to the primary db backup server drive was full, so when he tried to automatically failed.
I resolved the issue of space, but now I get the following error:
ORA-00283: cool cancelled due to errors
ORA-01111: name for the data file 129 is unknown - rename it to the correct file
ORA-01110: data file 129: "C:\ORACLE\ORA10G\DATABASE\UNNAMED00129."
ORA-01157: cannot identify/lock data file 129 - see DBWR trace file
ORA-01111: name for the data file 129 is unknown - rename it to the correct file
ORA-01110: data file 129: "C:\ORACLE\ORA10G\DATABASE\UNNAMED00129."
I tried to manually copy the files from the live database and I tried a command alter database rename file but that tells me name change is not allowed if management standby is set to automatic. I had a search but cannot see a solution, any ideas?
Thank you
RobertStep 1:-check the name of the data file on the backup database
Select name from v$ datafile; -This command should display the name of the data file as UNNAMEDxxxxx
STEP 2:-ON THE BACKUP DATABASE
ALTER system set standby_file_management = "manual";Step 3:-rename the data file
ALTER database create datafile 'C:\ORACLE\ORA10G\DATABASE\UNNAMED00129' as 'C:\ORACLE\ORA10G\DATABASE\actual_dbfile_name.dbf '.Step 4:-on the backup database
ALTER system set standby_file_management = "auto";Step 5:-on the backup database
recover managed standby database disconnect; -
data file update the header by various processes
Hi master,
It is certainly not a question any. I just wanted to clear some doubts in my mind. We all know SNA are generated and updated in the controlfiles and datafile headers by various oracle process.
System change number are updated by DBWr in the header of the data files and of ckpt in controlfiles... Please correct me if I'm wrong.
I am little confuse on when the database writer writes dirty blocks in the data files update the header of this particular data file or updated all the header of data file in the tablespace or all the headers of data file?
and it is, but it is obvious that if the instance crash, then database will be inconsistent state and application of recovery of incompatible data files as YVERT in the control file does not match the data file header...
treat means only when good checkpoint with CKPT then only the database will be a consistent state after reboot... it means making ckpt YVERT in all the datafile header match with in controlfiles?
dealing with writing or update YVERT in other than CKPT controlfiles? at the time, only respective datafile is updated with the new change number or all in this tablespace data files are updated?
Although many change of system is not timed... It may often happen and it does... but how to find change number perfect if we want to recover a file of data or database with incomplete recovery until the sequence or YVERT? I tried to find the list for the smon_scn_time , but don't know how to use...
I'm looking also for document on this point of view I have Google, but have not found anything successful.
any suggestions would be much appreciated...
Thanks and greetings
VD
Published by: vikrant dixit on April 2, 2009 12:05 AMgurantee Oracle with CKPT SNA who wrote to datafile is completed and will be contradicted with system files, tablespace and other
tabelspace load datafiles, each tablespace datafiles CKPT SNA is circumscribed in controlfile is why when you take line/hot
Save then your backup is inconsistent on recovery makes inconsistent backups consistent oracle by applying all archived and online
redo logs, oracle makes the recovery by reading more early/more former SNA to one of the headers of data file (media recovery) and apply the
changes of newspapers in the data file.After the completion of checkpoint process CKPT process increment header controlfile CKPT SNA and broad cast than SNA CKPT to others
header data file. This SNA CKPT is not individual for alls datafile within the database or tablespace datafiles, each CKPT SNA data file is the same.
You can verify this behavior.SQL> select substr(name,1,50) fname,checkpoint_change#,last_change#,status 2 from v$datafile 3 / FNAME CHECKPOINT_CHANGE# LAST_CHANGE# STATUS -------------------------------------------------- ------------------ ------------ ------- F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\SYSTEM01.DBF 327957 SYSTEM F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\UNDOTBS01.DB 327957 ONLINE F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\SYSAUX01.DBF 327957 ONLINE F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\USERS01.DBF 327957 ONLINE<--- F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\USERS02.DBF 327957 ONLINE<--- SQL> alter system checkpoint 2 / System altered. SQL> select substr(name,1,50) fname,checkpoint_change#,last_change#,status 2 from v$datafile 3 / FNAME CHECKPOINT_CHANGE# LAST_CHANGE# STATUS -------------------------------------------------- ------------------ ------------ ------- F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\SYSTEM01.DBF 327960 SYSTEM F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\UNDOTBS01.DB 327960 ONLINE F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\SYSAUX01.DBF 327960 ONLINE F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\USERS01.DBF 327960 ONLINE F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\USERS02.DBF 327960 ONLINE SQL> alter system checkpoint 2 / System altered. SQL> select substr(name,1,50) fname,checkpoint_change#,last_change#,status 2 from v$datafile 3 / FNAME CHECKPOINT_CHANGE# LAST_CHANGE# STATUS -------------------------------------------------- ------------------ ------------ ------- F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\SYSTEM01.DBF 327965 SYSTEM F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\UNDOTBS01.DB 327965 ONLINE F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\SYSAUX01.DBF 327965 ONLINE F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\USERS01.DBF 327965 ONLINE F:\ORACLE\PRODUCT\10.1.0\ORADATA\PROD\USERS02.DBF 327965 ONLINE
Khurram
-
Field in the data file exceeds the maximum length
Dear all,
I'm trying to download data in a table using SQLLDR, the data field in TAR_BAD_RSN and PCL_ADD1 columns do not have more than 4,000 characters. I pasted the file desc and control table which I use. Pls help me on what I get an error msg like field in the data file exceeds the maximum length for TAR_BAD_RSN and PCL_ADD1
Thanks for reading this post:> desc dedup_target_upload_new Name Null? Type ----------------------------------------- -------- ---------------------------- PPL_CON_ID VARCHAR2(20) PPL_CON_NO VARCHAR2(20) TAR_DIV VARCHAR2(10) TAR_MODEL VARCHAR2(50) PPL_BOOKED_DT VARCHAR2(20) PCL_FIRST_NAME VARCHAR2(100) PCL_MIDDLE_NAME VARCHAR2(100) PCL_LAST_NAME VARCHAR2(100) PPL_IBC_CODE VARCHAR2(100) PPL_DLR_CODE VARCHAR2(100) INV_CHAS_NO VARCHAR2(20) INV_ENG_NO VARCHAR2(20) PCL_MOB_NO VARCHAR2(300) PCL_PH_NO VARCHAR2(300) RC_NO VARCHAR2(25) PPL_STS VARCHAR2(300) PCL_ADD1 VARCHAR2(300) PCL_ADD2 VARCHAR2(300) PCL_ADD3 VARCHAR2(300) PCL_CITY VARCHAR2(50) PCL_PINCODE VARCHAR2(10) FLAG VARCHAR2(10) ID_DRIVING_LIC VARCHAR2(40) ID_ELECTION_CARD VARCHAR2(40) ID_PAN_CARD VARCHAR2(40) ID_PASSPORT VARCHAR2(40) BIRTH_DATE VARCHAR2(100) TAR_PH_1 VARCHAR2(50) TAR_PH_2 VARCHAR2(50) TAR_PH_3 VARCHAR2(50) TAR_PH_4 VARCHAR2(50) TAR_PH_5 VARCHAR2(50) TAR_BAD_RSN VARCHAR2(4000) TAR_STS VARCHAR2(40) load data infile 'z:\FILE1.txt' append into table dedup_target_upload_new FIELDS TERMINATED BY " " TRAILING NULLCOLS( PPL_CON_ID "CHAR(4000) TRIM(:PPL_CON_ID)" , PPL_CON_NO "CHAR(4000) TRIM(:PPL_CON_NO)" , TAR_DIV "CHAR(4000) TRIM(:TAR_DIV)" , TAR_MODEL "CHAR(4000) TRIM(:TAR_MODEL)" , PPL_BOOKED_DT "CHAR(4000) TRIM(:PPL_BOOKED_DT)" , PCL_FIRST_NAME "CHAR(4000) TRIM(:PCL_FIRST_NAME)" , PCL_MIDDLE_NAME "CHAR(4000) TRIM(:PCL_MIDDLE_NAME)" , PCL_LAST_NAME "CHAR(4000) TRIM(:PCL_LAST_NAME)" , PPL_IBC_CODE "CHAR(4000) TRIM(:PPL_IBC_CODE)" , PPL_DLR_CODE "CHAR(4000) TRIM(:PPL_DLR_CODE)" , INV_CHAS_NO "CHAR(4000) TRIM(:INV_CHAS_NO)" , INV_ENG_NO "CHAR(4000) TRIM(:INV_ENG_NO)" , PCL_MOB_NO "CHAR(4000) TRIM(:PCL_MOB_NO)" , PCL_PH_NO "CHAR(4000) TRIM(:PCL_PH_NO)" , RC_NO "CHAR(4000) TRIM(:RC_NO)" , PPL_STS "CHAR(4000) TRIM(:PPL_STS)" , PCL_ADD1 "CHAR(4000) TRIM(:PCL_ADD1)" , PCL_ADD2 "CHAR(4000) TRIM(:PCL_ADD2)" , PCL_ADD3 "CHAR(4000) TRIM(:PCL_ADD3)" , PCL_CITY "CHAR(4000) TRIM(:PCL_CITY)" , PCL_PINCODE "CHAR(4000) TRIM(:PCL_PINCODE)" , FLAG "CHAR(4000) TRIM(:FLAG)" , ID_DRIVING_LIC "CHAR(4000) TRIM(:ID_DRIVING_LIC)" , ID_ELECTION_CARD "CHAR(4000) TRIM(:ID_ELECTION_CARD)" , ID_PAN_CARD "CHAR(4000) TRIM(:ID_PAN_CARD)" , ID_PASSPORT "CHAR(4000) TRIM(:ID_PASSPORT)" , BIRTH_DATE "CHAR(4000) TRIM(:BIRTH_DATE)" , TAR_PH_1 "CHAR(4000) TRIM(:TAR_PH_1)" , TAR_PH_2 "CHAR(4000) TRIM(:TAR_PH_2)" , TAR_PH_3 "CHAR(4000) TRIM(:TAR_PH_3)" , TAR_PH_4 "CHAR(4000) TRIM(:TAR_PH_4)" , TAR_PH_5 "CHAR(4000) TRIM(:TAR_PH_5)" , TAR_BAD_RSN "CHAR(4000) TRIM(:TAR_BAD_RSN)" , TAR_STS "CHAR(4000) TRIM(:TAR_STS)" )
* 009 *.Hello
Is it possible to deilmit the fields with ' | '? So you don't have to worry about their variable length.
Just use the completed fields by "|" in the control file.
Concerning
Maybe you are looking for
-
I want to enjoy my AVERAGE, normal windows XP themes to return (Please read details)
Please read all the details: I use Windows XP SP3 (but not sure if it was 1 SP2 or not) but my problem I want to set immediately (or as soon as possible [but with all my hope we hope immediately] this) is my Windows XP themes. The computer I use used
-
My Windows Movie Maker will not publish my video! Help!
Whenever I try and publish my video, about 19% through, it will say "Windows Movie Maker cannot save the movie to the specified location. "Verify that the original source files used in your movie are still available, that the backup location is still
-
When I use the volume slider on my hp Pavilion, the excel program opens for each click you hear when you drag the volume bar... how do I turn this off?
-
Why close and restart after 1 hour, while I am still connected to my computer?
My computer restarts automatically after an hour and I lose and have to reconnect! Help! Don't know what to do! Have windows Vista Home premium. Never had this problem before, until now!
-
I need help! I just bought this printer wireless and I'm trying to put up with my new laptop Alienware x 17. I tried everything and I know that I have to do something wrong. First, do I need a wireless router for my laptop and printer to work? After