Redolog dbf file created in wrong permission

Hi Experts
We have installed a new SAP system with oracle in AIX platform. When we checked for the redolog file direcotry it shows as below
-rw-------    1 ora<sid>   dba          135168 Jan 13 18:39 <sid>arch1_1441_856886348.dbf
-rw-r-----    1 ora<sid>   dba        12865024 Jan 13 21:24 <sid>arch1_1442_856886348.dbf
-rw-------    1 ora<sid>   dba         6878720 Jan 13 23:04 <sid>arch1_1443_856886348.dbf
-rw-r-----    1 ora<sid>   dba        45330944 Jan 14 07:00 <sid>arch1_1444_856886348.dbf
here u can see one file is written in 600 permission and alternate in 640 permission. when i trigger the archival from orasid user the archival backup is successful. but when i trigger from DB13 it triggered error. I have TDP for taking backup.
I have got the follwoing error
BKI2017I: Blocksize is set to 131072 bytes
BKI0032E: Error opening file /oracle/<SID>/oraarch/<SID>arch1_1432_856886348.dbf: The file access permissions do not allow the specified action.
BKI1200E: Cannot read/write file: /oracle/<SID>/oraarch/<SID>arch1_1432_856886348.dbf.
BR0233E Backup utility has reported an error while saving file /oracle/<SID>/oraarch/<SID>arch1_1432_856886348.dbf
BKI1200E: Cannot read/write file: /oracle/<SID>/oraarch/<SID>arch1_1433_856886348.dbf.
BR0233E Backup utility has reported an error while saving file /oracle/<SID>/oraarch/<SID>arch1_1433_856886348.dbf
BKI1200E: Cannot read/write file: /oracle/<SID>/oraarch/<SID>arch1_1434_856886348.dbf.
BR0233E Backup utility has reported an error while saving file /oracle/<SID>/oraarch/<SID>arch1_1434_856886348.dbf
BKI1200E: Cannot read/write file: /oracle/<SID>/oraarch/<SID>arch1_1435_856886348.dbf.
Because of the dbf file permission the backup is failing in sidadm
Regards
bala

Hi Markus
SystemA:sidadm> exit
$ sudo su - orasid
orasid> umask
022
orasid> exit
$ sudo su - sidadm
SystemA:sidadm> umask
022
SystemA:sidadm>
and Joe
SystemA:sidadm> cd mirrlogB
SystemA:sidadm> ls -lt
total 204818
-rw-r-----    1 orasid   dba        52429312 Jan 14 07:00 log_g14m2.dbf
-rw-r-----    1 orasid   dba        52429312 Jan 13 21:24 log_g12m2.dbf
drwxr-xr-x    2 root     system          256 Dec 21 11:21 lost+found
SystemA:sidadm> cd ../mirrlogA
SystemA:sidadm> ls -lt
total 204818
-rw-r-----    1 orasid   dba        52429312 Jan 14 12:45 log_g11m2.dbf
-rw-r-----    1 orasid   dba        52429312 Jan 13 23:04 log_g13m2.dbf
drwxr-xr-x    2 root     system          256 Dec 21 11:21 lost+found
SystemA:sidadm> cd ../origlogA
SystemA:sidadm> ls -lt
total 204810
-rw-r-----    1 orasid   dba        52429312 Jan 14 12:45 log_g11m1.dbf
-rw-r-----    1 orasid   dba        52429312 Jan 13 23:04 log_g13m1.dbf
drwxr-xr-x    2 orasid   dba             256 Dec 29 13:19 cntrl
drwxr-xr-x    2 root     system          256 Dec 21 11:17 lost+found
SystemA:sidadm> cd ../origlogB
SystemA:sidadm> ls -lt
total 204818
-rw-r-----    1 orasid   dba        52429312 Jan 14 07:00 log_g14m1.dbf
-rw-r-----    1 orasid   dba        52429312 Jan 13 21:24 log_g12m1.dbf
drwxr-xr-x    2 orasid   dba             256 Dec 29 13:19 cntrl
drwxr-xr-x    2 root     system          256 Dec 21 11:18 lost+found
root#SystemB> cd origlogA
root#SystemB> ls -lt
total 204818
-rw-r-----    1 orasit   dba        52429312 Jan 14 11:46 log_g11m1.dbf
-rw-r-----    1 orasit   dba        52429312 Jan 14 11:14 log_g13m1.dbf
drwxr-xr-x    2 orasit   dba             256 Sep 13 02:45 cntrl
drwxr-xr-x    2 root     system          256 Aug 24 08:53 lost+found
root#SystemB> cd ../origlogB
root#SystemB> ls -lt
total 204818
-rw-r-----    1 orasit   dba        52429312 Jan 14 13:00 log_g12m1.dbf
-rw-r-----    1 orasit   dba        52429312 Jan 14 11:28 log_g14m1.dbf
drwxr-xr-x    2 orasit   dba             256 Sep 13 02:45 cntrl
drwxr-xr-x    2 root     system          256 Aug 24 08:54 lost+found
root#SystemB> cd ../mirrlogA
root#SystemB> ls -lt
total 204818
-rw-r-----    1 orasit   dba        52429312 Jan 14 11:46 log_g11m2.dbf
-rw-r-----    1 orasit   dba        52429312 Jan 14 11:14 log_g13m2.dbf
drwxr-xr-x    2 root     system          256 Aug 24 08:55 lost+found
root#SystemB> cd ../mirrlogB
root#SystemB> ls -lt
total 204818
-rw-r-----    1 orasit   dba        52429312 Jan 14 13:00 log_g12m2.dbf
-rw-r-----    1 orasit   dba        52429312 Jan 14 11:28 log_g14m2.dbf
drwxr-xr-x    2 root     system          256 Aug 24 08:55 lost+found
root#SystemB>

Similar Messages

  • Db file in Replica was created in wrong folder

    Hello!
    I created db file at \BDB_HOME\BDB_SUBx in Master, but in Replica site db file was created in wrong folder which is BDB_HOME.
    Do I miss something than setting path to DatabaseEnvironmentConfig.CreationDir ?
    \BDB_HOME
    |
    -BDB_SUB1
    -BDB_SUB2
    -BDB_SUB3
    FYI
    Ver.5.1.19 (HA)
    C#
    VisualStudio.Net 2010
    Thanks,
    Osamu

    Hi Osamu,
    This is a known limitation with BDB HA at the moment. This issue is tracked internally in SR #19041. We hope to fix it, but do not guarantee that it will make it, in the next BDB release, 5.2.
    Osamu, if you have access to MOS (MyOracle Support) please consult Note 1250654.1 (Doc ID 1250654.1) -- How to Correctly Replicate a Directory Structure Involving Subdirectories Between Master and Client. This article explains in detail this issue and how to work around it for now.
    For reference, to explain the issue in more detail, suppose on the master the environment directory structure looks something like this:
    \BDB_ENV_HOME
         \BDB_SUBDIR_1
         - DbFile_1_1.db
         - DbFile_1_2.db
         - DbFile_1_N.db
         \BDB_SUBDIR_2
         - DbFile_2_1.db
         - DbFile_2_2.db
         - DbFile_2_N.db
         \BDB_SUBDIR_M
         - DbFile_M_1.db
         - DbFile_M_2.db
         - DbFile_M_N.dbOn the client site, the environment directory structure will be incorrectly replicated and will look something similar to this (with all database files ending up under one of the subdirectories):
    \BDB_ENV_HOME
         \BDB_SUBDIR_1
         \BDB_SUBDIR_2
         \BDB_SUBDIR_M
         - DbFile_1_1.db
         - DbFile_1_2.db
         - DbFile_1_N.db
         - DbFile_2_1.db
         - DbFile_2_2.db
         - DbFile_2_N.db
         - DbFile_M_1.db
         - DbFile_M_2.db
         - DbFile_M_N.dbThe workaround to resolve this issue depends on a manual hot backup. AUTOINIT should be turned off via rep_set_config with DB_REP_CONF_AUTOINIT and 0. Than the client should be bootstrapped with the databases and logs from the master and recovery should be run as described in the Berkeley DB Programmer's Reference Guide, in the Hot failover section.
    Basically, copy all the databases, copy the logs, run catastrophic recovery on the new client environment directory, and start the application. By turning off AUTOINIT you might need to take care of handling the REP_JOIN_FAILURE event error.
    To summarize, the workaround implies the following actions:
    1. On the client environment call DbEnv::rep_set_config like this:
    DbEnv::rep_set_config(DB_REP_CONF_AUTOINIT, 0);With the C# API it's something like:
    DatabaseEnvironmentConfig envConfig = new DatabaseEnvironmentConfig();
    envConfig.RepSystemCfg = new ReplicationConfig();
    envConfig.RepSystemCfg.AutoInit = false;
    DatabaseEnvironment env = DatabaseEnvironment.Open(envHomeDir, envConfig);or you could use the DatabaseEnvironment's class RepAutoInit property.
    2. Handle DB_REP_JOIN_FAILURE on the client environment, which could be returned from DbEnv::rep_process_message. Handling implies setting an event callback function via set_event_notify for DB_EVENT_REP_JOIN_FAILURE like this:
    DbEnv::set_event_notify(eventsHandler);where eventsHandler is a callback function that respects this signature:
    void (*db_event_fcn)(DB_ENV *dbenv, u_int32_t event, void *event_info)and internally checks to see if event is DB_EVENT_REP_JOIN_FAILURE. If it is, it may trigger copying of the backup files from the master onto the client.
    With the C# API you will set an EventNotifyDelegate delegate using the EventNotify property and check the NotificationEvent.
    3. Start the client. Because AUTOINIT is turned off, internal init will not be performed, hence it will not remove the directory structure on the client environment.
    4. If the event callback function gets notified of the DB_EVENT_REP_JOIN_FAILURE it means that the backup of the master (databases and log files of the master) is required on the client. Take a manual hot backup as per the guidelines in the Hot failover section, and copy the database and log files onto the client; this is something that the event callback function can do, when it handles DB_EVENT_REP_JOIN_FAILURE by using something like rsync to copy the files between the machines.
    5. If a backup was copied onto the client, run a catastrophic recovery in the client environment either manually via db_recover -c, or programmatically by specifying the DB_RECOVER_FATAL flag to the client's DbEnv::open call (with the C# API you specify it via RunFatalRecovery)
    6. After the catastrophic recovery will have been performed and the client will have started, all the replication synchronization will work as expected, replication messages will be processed correctly, and the directory structure will be maintained.
    Regards,
    Andrei

  • PDF file created from Oracle Report is attached wrongly

    Hi,
    Please help. It is very urgent.
    I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
    I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
    I use the following package procedure in my Workflow.
    procedure Create_File_Attachment (document_id   in varchar2, display_type  in varchar2, document      in out blob, document_type in out varchar2)
    is
         l_itemtype          varchar2(100);
         l_itemkey           varchar2(100);
         l_output_directory  varchar2(30);
         l_filename          varchar2(255);
         src_loc             bfile;
         bdoc                blob;
         src_offset          number := 1;
         dst_offset          number := 1;
         amount              number;
    begin
         l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
         l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
         l_output_directory := 'USR_TMP_DIR';
         l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
         src_loc := bfilename(l_output_directory,l_filename);
         dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
         dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
         dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
         dbms_lob.fileclose(src_loc);
         amount := dbms_lob.getLength(bdoc);
         dbms_lob.copy(document,bdoc,amount,1,1);
         document_type := 'application/pdf; name=attach.pdf';
    end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
    I tried to attach the PDF into my Workflow.
    I can see the file is attached (attach.pdf), but it cannot be opened.
    The Adobe shows : 'A drawing error occured.' each time I open the attachment.
    I compare the original.pdf and the attach.pdf
    However, there is one specific difference
    - in original.pdf, the line started with '.' (single period)
    in attach.pdf, the line is started with '..' (two periods)
    Thus the attachment cannot be opened.
    After I delete the period, it can be opened.
    Question:
    - Has someone ever succeed in attaching the PDF created from Report?
    - Are the codes above is wrong?
    - Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
    - Is there any solution on this?
    Note:
    I have succeed in attaching PDF files unless the PDF created by the Report.
    Sorry for the long post.
    Please help. It is very urgent.
    Any help is appreciated.
    Many thanks,
    Buntoro

    The code looks absolutely good. I have the same code working in my system. Only difference is I use TRUE and DBMS_LOB.Session for the BLOB I use to read from the BFILE.
    I can suggest one more way to handle to binary attachments if you are on Oracle 9i DB are later versions.
    procedure attach_document (p_document_id   in varchar2,
                               p_display_type  in varchar2,
                               p_document      in out nocopy clob,
                               p_document_type in out nocopy varchar2)
    is
      l_nid        number;
      l_directory  varchar2(100);
      l_filename   varchar2(100);
      l_content_type varchar2(100);
      l_src_offset binary_integer := 1;
      l_dst_offset binary_integer := 1;
      l_err_msg    varchar2(100);
      l_amount     number;
      l_bfile BFILE;
      l_blob  BLOB;
      l_clob  CLOB;
      file_not_found exception;
      pragma EXCEPTION_INIT(file_not_found, -22288);
    begin
      l_nid := to_number(p_document_id);
      l_directory := trim(wf_notification.GetAttrText(l_nid, 'ATTR_DIRECTORY'));
      l_filename := trim(wf_notification.GetAttrText(l_nid, 'ATTR_FILENAME'));
      l_content_type := trim(wf_notification.GetAttrText(l_nid, 'ATTR_CONTENT_TYPE'));
      l_bfile := BFILENAME(l_directory, l_filename);
      dbms_lob.createtemporary(l_blob, true, dbms_lob.Session);
      dbms_lob.createtemporary(l_clob, true, dbms_lob.Session);
      begin
        dbms_lob.FileOpen(l_bfile, dbms_lob.File_Readonly);
      exception
        when file_not_found then
          l_err_msg := to_char(sqlcode)||' - Attachment File "'||l_filename||'" is not found.';
          raise_application_error(-20002, l_err_msg);
      end;
      dbms_lob.LoadBLOBFromFile(l_blob, l_bfile, dbms_lob.LobMaxSize, l_src_offset, l_dst_offset);
      dbms_lob.FileClose(l_bfile);
      -- Encode the BLOB content to BASE64 and attach to notification  
      wf_mail_util.EncodeBLOB(l_blob, l_clob);
      l_amount := dbms_lob.GetLength(l_clob);
      dbms_lob.Copy(p_document, l_clob, l_amount, 1, 1);
      -- Mention an appropriate Content Type so that Notification System
      -- understands the attachment content
      p_document_type := l_content_type||'; encoding=base64; name='||l_filename;
    end attach_document;Here I read the BLOB from the filesystem and base64 encode it before giving it to the Mailer. Please note that this is a PLSQLCLOB based attachment as against PLSQLBLOB that you are using.
    Thanks - Vijay

  • PDF file created from Oracle Report is created wrongly using dbms_lob

    Hi,
    Please help. It is very urgent.
    I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
    I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
    I use the following package procedure in my Workflow.
    procedure Create_File_Attachment (document_id   in varchar2, display_type  in varchar2,
                                                                                         document      in out blob, document_type in out varchar2)
    is
         l_itemtype          varchar2(100);
         l_itemkey           varchar2(100);
         l_output_directory  varchar2(30);
         l_filename          varchar2(255);
         src_loc             bfile;
         bdoc                blob;
         src_offset          number := 1;
         dst_offset          number := 1;
         amount              number;
    begin
         l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
         l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
         l_output_directory := 'USR_TMP_DIR';
         l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
         src_loc := bfilename(l_output_directory,l_filename);
         dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
         dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
         dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
         dbms_lob.fileclose(src_loc);
         amount := dbms_lob.getLength(bdoc);
         dbms_lob.copy(document,bdoc,amount,1,1);
         document_type := 'application/pdf; name=attach.pdf';
    end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
    I tried to attach the PDF into my Workflow.
    I can see the file is attached (attach.pdf), but it cannot be opened.
    The Adobe shows : 'A drawing error occured.' each time I open the attachment.
    I compare the original.pdf and the attach.pdf
    However, there is one specific difference
    - in original.pdf, the line started with '.' (single period)
    in attach.pdf, the line is started with '..' (two periods)
    Thus the attachment cannot be opened.
    After I delete the period, it can be opened.
    Question:
    - Has someone ever succeed in attaching the PDF created from Report?
    - Are the codes above is wrong?
    - Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
    - Is there any solution on this?
    Note:
    I have succeed in attaching PDF files unless the PDF created by the Report.
    Sorry for the long post.
    Please help. It is very urgent.
    Any help is appreciated.
    Many thanks,
    Buntoro

    Hi,
    Please help. It is very urgent.
    I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
    I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
    I use the following package procedure in my Workflow.
    procedure Create_File_Attachment (document_id   in varchar2, display_type  in varchar2,
                                                                                         document      in out blob, document_type in out varchar2)
    is
         l_itemtype          varchar2(100);
         l_itemkey           varchar2(100);
         l_output_directory  varchar2(30);
         l_filename          varchar2(255);
         src_loc             bfile;
         bdoc                blob;
         src_offset          number := 1;
         dst_offset          number := 1;
         amount              number;
    begin
         l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
         l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
         l_output_directory := 'USR_TMP_DIR';
         l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
         src_loc := bfilename(l_output_directory,l_filename);
         dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
         dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
         dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
         dbms_lob.fileclose(src_loc);
         amount := dbms_lob.getLength(bdoc);
         dbms_lob.copy(document,bdoc,amount,1,1);
         document_type := 'application/pdf; name=attach.pdf';
    end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
    I tried to attach the PDF into my Workflow.
    I can see the file is attached (attach.pdf), but it cannot be opened.
    The Adobe shows : 'A drawing error occured.' each time I open the attachment.
    I compare the original.pdf and the attach.pdf
    However, there is one specific difference
    - in original.pdf, the line started with '.' (single period)
    in attach.pdf, the line is started with '..' (two periods)
    Thus the attachment cannot be opened.
    After I delete the period, it can be opened.
    Question:
    - Has someone ever succeed in attaching the PDF created from Report?
    - Are the codes above is wrong?
    - Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
    - Is there any solution on this?
    Note:
    I have succeed in attaching PDF files unless the PDF created by the Report.
    Sorry for the long post.
    Please help. It is very urgent.
    Any help is appreciated.
    Many thanks,
    Buntoro

  • Create .dbf file from Forms 6i

    Hello,
    I know how to create a text file with Only col of tables in Text File(*.txt) using Text_io Package.
    How To get the same Output as DBF File(*.dbf) directly so that there is no Extra overhead of converting *.txt to *.dbf using Visual Foxpro?
    Thanks in Advance

    You can use the Exec_SQL package.
    The following code successfully copies the EMP form block into a emp.dbf file.
    The ODBC Data Source "prashanth" must be configured.
    declare
      fox_tab  EXEC_SQL.conntype;
      cur      EXEC_SQL.curstype;
      ret      pls_integer;
    begin
      begin -- Delete emp.dbf
        fox_tab := exec_sql.open_connection(null, null, 'ODBC:prashanth');
        cur := EXEC_SQL.open_cursor(fox_tab);
        EXEC_SQL.parse(fox_tab, cur, 'drop table emp ');
        ret := exec_sql.execute(fox_tab, cur);
      exception 
        when OTHERS then NULL;
      end;
    -- create new emp.dbf file
    EXEC_SQL.parse(fox_tab, cur, 
        'create table emp (EMPNO INTEGER,'||
                          'ENAME CHAR(10),'||
                          'JOB CHAR(9),'||
                          'MGR NUMBER,'||
                          'HIREDATE DATE,'||
                          'SAL NUMBER,'||
                          'COMM NUMBER,'||
                          'DEPTNO NUMBER)');
    ret := exec_sql.execute(fox_tab, cur);
    Go_Block('EMP');
    execute_query;
    loop
      EXEC_SQL.parse(fox_tab, cur, 
         'insert into emp(EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO)'||
                          values('||:EMP.EMPNO||','''||:EMP.ENAME||''','''||
                          :EMP.JOB||''','||
                          NVL(TO_CHAR(:EMP.MGR), 'NULL')||','''||
                          TO_CHAR(:EMP.HIREDATE, 'DD-MON-YYYY')||''','||
                          NVL(TO_CHAR(:EMP.SAL), 'NULL')||','||
                          NVL(TO_CHAR(:EMP.COMM), 'NULL')||','||
                          NVL(TO_CHAR(:EMP.DEPTNO), 'NULL')||')');
      ret := exec_sql.execute(fox_tab, cur);
      if :system.last_record = 'TRUE' then exit; else next_record; end if;
    end loop;
    EXEC_SQL.close_cursor(cur);
    EXEC_SQL.close_connection(fox_tab);
    end;

  • Create SQL tables from dbf files

    I have hundreds of dbf files that I need to import into SQL Server.  I have created a foreach loop container and have a data task within the loop that will import the data.  However, it will only work if the tables are already in SQL Server. 
    These tables may differ depending on versions so I cannot use the Wizard.  I know I can do the CREATE TABLE using variables, but how can I get the schema from the dbf file in order to dynamically fill in the columns for the CREATE TABLE statement? 

    Thanks Arthur.  Does anyone have an example?  Considering the wizard can extract the column names, there has to be a way to set this up.  I am new to SSIS and have not been able to figure out a way to grab at least the column names
    via a script.
    The wizard may extract the names. Then dump somewhere. Then create a script say in Excel off the column names, but you also need the lengths, datatypes. What is this dbf file? Is it dBase database? Can you open a file in a text editor?
    We know nothing at this point still.
    Arthur My Blog

  • How to creat a a .dbf file?

    Dear All Experts,
    I have Forms Developer 9.0.4 and oracle 9i database.
    How can create a .dbf file?
    Or
    How can i write in a .dbf file?
    I have created or written in .txt file using Text_io
    But please help me to achieve the same with .dbf file.
    I will be very greatful.
    Thanks
    Rana

    You are on the right track.
    A dbf file is a flat ( text ) file with additional header information.
    You need to do some research to determine the header structure and prepend that to your text file.
    Mike

  • Problem of creating FoxPro dbf file in Java

    Hi all,
    I tried to create a empty FoxPro dbf file with the following codes in Java:
    sqlString = "create table mytable.dbf ( Name C(10) )"
    queryStatement.execute( sqlString );
    And it did create a "mytable.dbf" file. However, when I opened it with Excel, it said that it is not a recognizable format. If I continued to open it, I could only see some junks inside.
    I am using Windows 2000 Pro and j2sdk 1.4.2. I also have Microsoft Visual FoxPro Driver installed. This works perfectly with SQL commands like SELECT and INSERT, but just doesn't work for CREATE. Does any body have a clue of what I should do? Thanks a lot!
    Alex

    You may want to get rid of the .dbf part in your create statement. Foxpro doesn't need that. It should be:
    create table mytable(myfield c(10)), not create table mytable.dbf(myfield c(10)).
    This may help. If people are using a recent version of Excel it should be able to open up foxpro tables...I do it all the time. What version of Foxpro are you running, and what version of the dbc driver for Foxpro are you using?
    Eric

  • Create the dbf file with java, but cannot display the data with VF

    Dear all,
    i create a dbf file with some java packages, this file can be opened and display all of the data with excel, but just can show the data structure and no any data when i open it with VF, how to solve it?

    Hi, I have got same problem as you. My application generates a DBF file from a resultset. In MS Excel it looks pretty good - all data, but when I try to open same DBF file with Fox or MS Access, I always see ONLY header(column names), but NO data! I don't know why?! The application generates this file using JDBF classes (version 1.0). I guess, maybe it is caused by the size of this file. The DBF file had 18 columns and over 32000 rows.
    Did you find the cause? I'll be grateful for help.

  • Zoom H2n "file created" dates are WRONG

    Zoom H2n (audio files) "file created" dates are 31 December 1969 @1900 unless I DL them to Win7 box and import them.  The time and date is set correctly in the H2n.  The time and date are correct for creation in Win7. It makes the EVENTS fall into December 1969 category in FCP X and I don't seem to be able to change them. Nothing about this is mentioned on the Zoom website.

    I know this is a rather old post but this bug is still unfixed so maybe it may help someone.
    This is actually a Zoom H2n bug, not a Final Cut one. The problem is that the Zoom sets the file creation dates to 1 january 1970 00:00. However it sets the right file modification date. A quick and dirty workaround I found for this is to use the terminal to fix it:
    find /Volumes/H2N_SD -name "*.WAV" -exec fix_zoom_dates.sh "{}" \;
    With fix_zoom_dates.sh being a shell script somewhere in your $PATH, containing the following:
    #!/bin/bash
    SetFile -d "$(GetFileInfo -m $1)" $1
    What it does is scanning the whole H2n sd card and setting the file creation date to the file modification date, for every WAV file present. You have to do that every time you want to import something from the Zoom, before opening Final Cut.
    Hope this can be helpful.
    Yo

  • How can I recover data from a USERS01.DBF file?

    So I had a Hard Drive die and that took out the OS and the Oracle RDBMS Installation (Oracle9i Enterprise Edition, 9.2.0.6.0 on WinXP). Fortunately most of the data in the database (9.5GB worth) was in the USERS01.DBF file which was on another drive and unharmed. I was also able to salvage the CONTROL01.CTL file, but everything else from the database is corrupted and irretrievable.
    I've just setup a new machine with the same version of Oracle and I created a brand new database with the same SID as before. I then tried to do:
    SQL> alter tablespace users offline temporary;
    Tablespace altered.
    (then I swapped the USERS01.DBF file with the original one and then tried to recover it)
    SQL> recover tablespace users;
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 9: 'F:\ORAHOME\ORADATA\MYDB\USERS01.DBF'
    ORA-01122: database file 9 failed verification check
    ORA-01110: data file 9: 'F:\ORAHOME\ORADATA\MYDB\USERS01.DBF'
    ORA-01206: file is not part of this database - wrong database id
    Is it even possible to do what I'm trying to? I had no backup of the USERS01.DBF file, but there should be some way to get at the data that is inside it...
    any help or a pointer in the right direction is much appreciated.
    thanks
    -jeff

    Whilst this isn't a direct answer, running any form of "recovery" will require archive logs, and it doesn't appear that you have archive logs related to this data file.
    If you had your system.dbf file in addition to a control file and data file, I'd imagine might have enough to bring a database online using a "cold backup" type restore.
    The specific error you show references the DBID in your data file does not reference the DBID in your control file. You don't appear to have restored your control file backup. This would make your existing .dbf files now not load, though a number of them can be rebuilt, not all of them can.

  • HELP! users02.dbf file missing, database not starting

    Hello,
    I created a datafile via Enterprise Manager named users02.dbf for the wrong tablespace (SYSAUX instead of USERS); obviously this datafile was empty. When I realized my error I went and deleted the users02.dbf file from my file system and not from Enterprise Manager (I know.. stupid..)
    The problem that I'm having now is that oracle will not start because it's missing this file, here is the error message:
    SQL> SQL> ALTER DATABASE open
    ERROR at line 1:
    ORA-01113: file 5 needs media recovery
    ORA-01110: data file 5:
    '/var/backup2/oracle/product/10.2.0/Db_1/oradata/standard/users02.dbf'
    I do not hav a backup because it was only a test file.
    Which file do I have to modify in order to tell oracle startup NOT to look for users02.dbf ?
    I really appreciate your help.
    David

    Paul, the last command gave me this error:
    alter database open
    ERROR at line 1:
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    Thanks

  • How to recover database using dbf file

    Hi all,
    My oracle database gets crash. But i have all the dbf file . But there is no controlfile,redo log file and pfile . So i have to create a database that will contain these existing dbf file.
    Can anyone tell what are the steps i have to follow ?
    Regards

    Does the datafiles comes from a cold backup or was database closed when disk crashed ?
    Well, what's your OS ?
    You need to write a new init.ora file, create the dba service if your under windows, and recreate the database with the command line, that will create controlfile and redolog.
    Nicolas.
    Argh, this is a Re: Lost database, and you already get answer into the other. Spending time here.
    Message was edited by:
    N. Gasparotto

  • ORACLE 9i startup problems. Try to open dbf file which doesn't exist

    Hi all,
    I'm trying to startup one oracle instance from sqlplus.
    I can mount the database but i can't open it because try to open one dbf file incorrect.
    Anyone know where i can indicate wich files should use? Perhps it's in the init.ora file?
    Regards

    I am not sure which method rdomene used but I would think he probably used the alter database backup control file to trace command (since he could mount the db)to create a text version that he could look at.
    I have head about people who did not know Oracle provided a means of dumping a text version of the control file to trace who used UNIX strings or a binary editor to see the contents.
    It is unfortunat that the text version, which can be used to reconstruct the control file, does not preserve the rman data.
    HTH -- Mark D Powell --

  • Oracle XE 11g x64 does not run. No *DBF files inside of the XE folder. Windows 7 Pro x64.

    Hello everyone!
    I hope you are doing well all. In my case I have some troubles by installing Oracle XE 11g on my PC. My OS is Windows 7 Pro x64.
    1. I activated the Administrator mode on my PC (net user Administrator /active:yes)
    2. Started the setup as Administrator. The setup process was finished successfully with no errors showed.
    3. Started the Database, OracleServiceXE, OracleXETNListener and other services.
    4. Tried to connect using sqlplus-> connect system ->password, what in result gave me ORA-01034 Oracle not available and ORA-27101 Shared memory realm does not exist errors.
    5. Then I recognized that my C:\oraclexe\app\oracle\oradata\XE folder is empty when it should be usually full with 6 DBF file.
    6. I opened the cloneDBCreation.log and it contains these data:
    SQL> Create controlfile reuse set database "XE"
      2  MAXINSTANCES 8
      3  MAXLOGHISTORY 1
      4  MAXLOGFILES 16
      5  MAXLOGMEMBERS 3
      6  MAXDATAFILES 100
      7  Datafile
      8  'C:\oraclexe\app\oracle\oradata\XE\system.dbf',
      9  'C:\oraclexe\app\oracle\oradata\XE\undotbs1.dbf',
    10  'C:\oraclexe\app\oracle\oradata\XE\sysaux.dbf',
    11  'C:\oraclexe\app\oracle\oradata\XE\users.dbf'
    12  LOGFILE
    13  GROUP 1 SIZE 51200K,
    14  GROUP 2 SIZE 51200K,
    15  RESETLOGS;
    SP2-0640: Not connected
    SQL> exec dbms_backup_restore.zerodbid(0);
    SP2-0640: Not connected
    SP2-0641: "EXECUTE" requires connection to server
    SQL> shutdown immediate;
    ORA-12560: TNS:protocol adapter error
    SQL> startup nomount pfile="C:\oraclexe\app\oracle\product\11.2.0\server\config\scripts\initXETemp.ora";
    ORA-12560: TNS:protocol adapter error
    SQL> Create controlfile reuse set database "XE"
      2  MAXINSTANCES 8
      3  MAXLOGHISTORY 1
      4  MAXLOGFILES 16
      5  MAXLOGMEMBERS 3
      6  MAXDATAFILES 100
      7  Datafile
      8  'C:\oraclexe\app\oracle\oradata\XE\system.dbf',
      9  'C:\oraclexe\app\oracle\oradata\XE\undotbs1.dbf',
    10  'C:\oraclexe\app\oracle\oradata\XE\sysaux.dbf',
    11  'C:\oraclexe\app\oracle\oradata\XE\users.dbf'
    12  LOGFILE
    13  GROUP 1 SIZE 51200K,
    14  GROUP 2 SIZE 51200K,
    15  RESETLOGS;
    SP2-0640: Not connected
    SQL> alter system enable restricted session;
    SP2-0640: Not connected
    SQL> alter database "XE" open resetlogs;
    SP2-0640: Not connected
    SQL> alter database rename global_name to "XE";
    SP2-0640: Not connected
    SQL> alter system switch logfile;
    SP2-0640: Not connected
    SQL> alter system checkpoint;
    SP2-0640: Not connected
    SQL> alter database drop logfile group 3;
    SP2-0640: Not connected
    SQL> ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\oraclexe\app\oracle\oradata\XE\temp.dbf' SIZE 20480K REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED;
    SP2-0640: Not connected
    SQL> select tablespace_name from dba_tablespaces where tablespace_name='USERS';
    SP2-0640: Not connected
    SQL> select sid, program, serial#, username from v$session;
    SP2-0640: Not connected
    SQL> alter user sys identified by "&&sysPassword";
    SP2-0640: Not connected
    SQL> alter user system identified by "&&systemPassword";
    SP2-0640: Not connected
    SQL> alter system disable restricted session;
    SP2-0640: Not connected
    SQL> @C:\oraclexe\app\oracle\product\11.2.0\server\config\scripts\postScripts.sql
    SQL> connect "SYS"/"&&sysPassword" as SYSDBA
    ERROR:
    ORA-12560: TNS:protocol adapter error
    SQL> set echo on
    SQL> spool C:\oraclexe\app\oracle\product\11.2.0\server\config\log\postScripts.log
    I spent around 2 days to come to this reason and now I do not know what to do next.
    My actions to resolve this problem:
    1. Checked if my user has administrative rights and belongs to ora_dba. It does!
    2. Turned Microsoft UAC off.
    3. Set the system and local variables of ORACLE_BASE, ORACLE_HOME, ORACLE_SID, PATH, TNS-ADMIN to the appropriate values in Enivornment Variables:
         - ORACLE_BASE -> C:\oraclexe
         - ORACLE_HOME -> %ORACLE_BASE%\app\oracle\product\11.2.0\server
         - ORACLE_SID -> XE
         - Added to PATH -> C:\oraclexe\app\oracle\product\11.2.0\server\bin;
         - TNS_ADMIN -> %ORACLE_HOME%\network\admin
    4. Removed Oracle XE 11g and reinstalled to another drive. No sense!
    Some more errors:
    1. C:\oraclexe\app\oracle\product\11.2.0\server\config\log\XE.bat.log
    Instance created.
    DIM-00019: create service error
    O/S-Error: (OS 1387) Ein Mitglied konnte in der lokalen Gruppe nicht hinzugefugt oder entfernt werden, da das Mitglied nicht vorhanden ist.
    It means -> O/S-Error: (OS 1387) Unable to add or remove a member from the local group because this member does not exist.
    I understand that I need to logon as batch job. I added me to this policy in User Rights Assignments, but still I get these "DIM-00019: create service error" and "O/S-Error: (OS 1387)". And I guess just therefore my database is not starting well.
    2. 127.0.0.1:8080/apex/f?p=4950 is not starting in browser. It is probably because the database is not running appropriately. For this issue have already seen one topic in Google that the HTTP Properties inside the Listener Status must be set to 8080 to make this link work. But in my case I do not see this line in my Listener Status:
    Some other information relevant to the issue:
    1)  echo %USERNAME% - Administrator
         echo %USERDOMAIN% - ildar-PC
    2) Listener.log:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = ildar-PC)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    3) Tnsnames.log
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = ildar-PC)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    4) Sqlnet.log:
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    5) While connecting by sqlplus, I get this errors/messages:
    6) Confirmation that I've got admin rights and I am in ORA_DBA:
    If u need some more information from me, please let me know!!
    Guys please help me to solve this issue, 'cause I've almost got frustrated to find out the solution of this problem. Thank you beforehand!!
    Kind regards,
    ildar

    I have tried to install both of them lots of times but in each case I receive the same in my XE.bat file:
    Instance created.
    DIM-00019: create service error
    O/S-Error: (OS 1387) Unable to add or remove a member from the local group because this member does not exist.
    Have checked OS 1387 error at Microsoft Support and as possible cause of the problem they give as follows:
    This issue can occur if the environment has a disjointed namespace (i.e. the domain has different NetBIOS and DNS names). For example, assume that the domain has a NetBIOS name of "domain.com" and a DNS name of "domain-old.com." When users are added in the Windows UI, they are displayed in the format of domain\ComputerName. However, you notice in the error log that there was an attempt to add a computer account in the format of domain-old\ComputerName. (System Center 2012 R2 Data Protection Manager install fails and generates ID: 4323: "A member could not be added")
    Tried to find out my DNS name, but it is impossible because I don't have any domain installed and my machine is not connected to it. Some other blog (Install Oracle 11gR2 on Windows) advices to work with adding my computer account to some non-real windows domain (just for the purpose of resolving the network) as well and reinstall the database then. If I undestand it right I need minimum 2 machines for this. But I own just one, where the server is based and thought that is enough to run the database... no idea ..

Maybe you are looking for

  • Other ways of adding audio recording to presentations Adobe Presenter 8?

    Hi there, I just realised that I asked a question in the wrong language! I have a quick question re. audio recording in AP8. Is there anyway to add audio to a presnetation other than with a traditional recording device? i.e. can audio be recorded via

  • Uploading file: Browse System Folders?

    Hi there. When uploading a file, is it possible to browse the system folders such as tmp, etc, and bin? And with saving things with TextEdit, why can I not browse, and only save in preset folders? Thanks, Troy

  • I Can't Download my messages more than six months

    I need help i Can't download all my messages into my friend since more than one year Please tell me how to do this I need to Download them thanks if anyone can help me Skype Manager

  • I can't change advanced type values (superscript & subscript)

    When i am trying to use subscript and superscript my text disappears. I think first that it is related to my font but when i open Preferences/Advanced Type I saw that both size and location values of superscript and subscript are zero. Everytime i ch

  • Need help in applying patch BP013 to OIM 9.0.1.2

    Hi, I am in th middle of applying patch BP013 to our OIM 9.0.1.2 environment. I am seeing an unusual behaviour. When I run the patch script patch_websphere.sh script, the xellerate application(Xellerate.ear) deployed in websphere is removed. when i l