Name of actual command file

Hi,
is it possible to find out the filename of the actually executed command file started with @ in sql*plus 8.1.7 ?
Like Unix $0 but as far as I know Oracle doesn't offer something like that.
Maybe somebody knows a better workaround than hardcoding the name in each file.
null

Nice feature, thank you CJ.
Here is some sample code to complete this topic.
SET FEEDBACK OFF
DECLARE
ch_module_name varchar2(60);
ch_action_name varchar2(50);
BEGIN
dbms_application_info.read_module(ch_module_name, ch_action_name);
dbms_output.put_line('SCRIPT: '| |substr(ch_module_name,4));
END;
SET FEEDBACK ON
null

Similar Messages

  • Is there a way to pass archive file name to the command-line control?

    Hi there,
    I have been researching the flash media live encoder laterly. But still cannot find confirmed anwsers on the following questions:
    1. Is there a way to pass an archive file name to the command-line control when starting an encoder?
    2. Can the username/password to the Flash Media Server be saved in the profile? If not, is there any otherway to provide(GUI mode) them automatically,
        like as variables to a script?
    Thanks a lot in advance.
    Helen

    1. The only way to inform the command-line encoder about the archive file name is to save the FMLE session profile with the file name. The node for saving the file name is <output><file><path>C:\sample.flv</output></file></path>. The easier way to update the xml profile is to use "Save Profile" option of the GUI mode. If you want to programmatically update the file name, read the profile and update the node before launching the encoder. I hope this answers your question.
    2. No. Credentials can't be saved in the profile. The only way to provide them programmatically is to use /ap and /ab commands for the command-line encoder. For GUI mode, there is no programmable option. But still you can try capturing keystrokes.

  • Pass the text file name to the command prompt using servlet

    hi to all,
    I have a HTML page that takes the user inputs. Once the user clicks on the submit button on the HTML page, these values will be capture by a servlet and then store into a text file. A new text file is generated each time the user clicks on the submit button.
    Now, i need to call a command prompt window and then pass the text file name to another program for execution. Any idea how i can pass the text file name to the command prompt???
    Thanx a lot....
    kinki

    hi, thanx 4 ur reply.
    But i not onli want to display the file name on the Tomcat command prompt. I must also able to call up a program to execute the command. If i used System.out.println(); it onli display the value on the console windows. But not executing it... anyway where i can do it???.
    thanx...
    Kinki

  • Copy full file path+file name in Midnight Commander

    Hi!
    How can I copy a file's full path with the file name in Midnight Commander?
    If I press Ctrl+Alt+Enter it's shows this to me in the command line but I can't copy this route.
    If I mark a file with 'Insert' and than if I would like to paste this for example in Mousepad or any other text editor with Shift+Insert or Ctrl+V it isn't works.
    (Relatively newbie sitting here so if the answer is complicated please write a step-by-step instruction )

    Well,I did a lot of research on the internet and I found the best solution.
    - choose the file,press 'Ctrl' + 'Shift' + 'Enter'
    - after that you can see the full file path + the file name in the command line (bottom of the screen)
    - Select the text with 'Shift' + 'Mouse Left Click' (drag it across the whole command)
    - For copy the text, press 'Ctrl' + 'Insert'
    - For paste, press 'Shift' + 'Insert'
    This is still pretty damn slow,I wanted to do it with a single key combination while the file is selected but it looks impossible.
    But at the same time I have started to use Ranger file manager which is also runs from terminal,extremely fast,easy to use and if I press 'Ctrl' + 'Insert' on a file it is copies the full path with the name of the file itself. Just perfect.
    I won't mark the thread [SOLVED] because if anybody knows a better method for this in Midnight Commander (with a script or whatnot) maybe will write it down for us. I hope...

  • ERROR Command File filename Not Found.

    Hi all,
    I am trying to automate the import of interface tables into Planning Dimension library. I am getting the below error. I have tried lot of methods in the way I call the Import.txt from epma-batch-client.bat but nothing seem to work. Your help appreciated. Thanks in advance.
    Error -> ERROR Command File "E:\\Import.txt" Not Found.
    Way Executed ->
    E:\Oracle\Middleware\EPMSystem11R1\products\Foundation\BPMA\EPMABatchClient>epma
    -batch-client.bat -C"E:\\Import.txt" -Uhypadmin -Ppassword
    Welcome to EPM Architect command line processing...
    Version:11.1.2.1.00
    2012-09-25 09:49:21,116 INFO Validating the command file E:\\Import.txt
    2012-09-25 09:49:21,117 ERROR Command File "E:\\Import.txt" Not Found.
    2012-09-25 09:49:21,118 INFO Exiting with return code 1 - Command File Validati
    on Error
    2012-09-25 09:49:21,118 INFO Thank you for using EPMA Batch Client!
    E:\Oracle\Middleware\EPMSystem11R1\products\Foundation\BPMA\EPMABatchClient>
    Contents of Import.txt ->
    set bpmaserverurl=http://server/hyperion-bpma-server;
    set workspaceurl=http://server:19000/workspace;
    Login hypadmin,password;
    Execute Import Parameters(importtype, profilename, filename, waitforcompletion) Values ('InterfaceTables','customertest','.txt','true');
    Logout;
    QUIT;

    Thanks all, It was an oversight. A very silly mistake and I took a lot of your time, sorry about that.
    I had the folder structure set as "hide known file types". And I named the file with an extension import.txt assuming the file's name is import and the extension is .txt. That was the error and that is why epma-batch-client could not locate the file called import.txt in the E: drive while the file name was actually import.txt.txt.
    I fixed that and now it runs fine as expected.

  • Processing an XML "command file"

    Hi!
    I am planning to implement an application where the middle-tier (a DataWebBean relying on BC4J?) processes XML files.
    These XML files would be "command" files to insert/update/delete data in the database - actually they would be very similar to data XML files, but each element having a supplementary attribute indicating whether the element is new, has to be updated or has to be deleted.
    Here is an example of what could be such a file (actually this would be a bit more compex, since it would be hierarchical with potentially more than one level - actually "isomorphic" to the structure of a view object - rather than of a table):
    <ROWSET name="FLIGHTS">
    <ROW action="insert">
    <FLIGHT updated="true">AC860</FLIGHT>
    <FROM updated="true">Paris</FLIGHT>
    </ROW>
    <ROW action="update">
    <FLIGHT updated="false">AF33</FLIGHT>
    <FROM updated="true">New-York</FLIGHT>
    </ROW>
    <ROW action="delete">
    <FLIGHT updated="false">UA111</FLIGHT>
    <FROM updated="false">Denver</FLIGHT>
    </ROW>
    <ROW action="none">
    <FLIGHT updated="false">QT40</FLIGHT>
    <FROM updated="false">Sydney</FLIGHT>
    </ROW>
    </ROWSET>
    This example tells to add a flight, to update another (notice that only the "FROM" attribute is marked as changed), to delete another and to do nothing with the last one.
    I think this is very similar to what XSQL is able to do but is there a way with XSQL to mix inserts, updates and deletes in the same XML file?
    If not, I plan to analyse the file with the XML parser and for each node, issue the corresponding command on the underlying View Object.
    But since it is a lot of work if I want it to be generic, I'd like to be sure there is no already existing (or more straightforward) way to achieve this... Any opinion or code sharing greatly appreciated!
    Thank you!
    Serge

    If you're using BC4J and XSQL together, then you can leverage the oracle.jbo.xsql.UpdateViewObject action handler that ships with BC4J for use in XSQL pages to make it easy to handle hierarchical XML documents using BC4J view objects.
    BC4J view objects can both produce and consume XML documentment using the writeXML() and readXML() API's on oracle.jbo.ViewObject, respectively.
    If there are view links in place, then the BC4J XML processing mechanism follows these links to nested, detail information. When you "feed" an existing XML document to the YourViewObject.readXML() method, it automatically processes inserts, updates, and deletes, as well as apply any BC4J business logic that exists in your Entity Objects (if any).
    The BC4J Action Handlers make it easy to combine BC4J with XSQL pages without having to write the writeXML() and readXML() calls by hand.

  • My actual InDesign File has become an alias and will not open...how do I fix?

    My actual InDesign file (61MB) is listed as an alias in the Finder and will not open in InDesign. This has happened since upgrading to Mavericks. This is a critical file to me; how do I make it just a standard InDesign (.indd) file again? Changing the filname extension does nothing. Help!

    OK so I’m late contributing to this thread, but this issue has recently started on one of our SMB shares and has been plaguing me for 6 weeks. I spent some time trying to find a fix and found any number of users who have had this issue, I tried a lot of 'fixes' which I'd cut and past into a text file from various user groups and cannot remember where I picked this one up so apologies to the orginal poster.
    I’ve also posted this fix in a number of forums so hopefully others searching for a fix can find it.
    You may need to download and install Codekit, I already have it installed and forget sometimes that some of these ‘hacks’ only work with it installed.
    Launch terminal and use this command /usr/bin/SetFile -a a followed by the path name to the damaged file.
    Something like
    /usr/bin/SetFile -a a /Volumes/YourServer/ShareName/FileName.alias
    The  easiest way to get the correct path name is to launch Terminal and drag  the damaged file to the command line, Terminal will create the correct  path, now all you need do is paste the command in to the Terminal  command line before the path and hit return.
    I  don't expect you will have this issue with InDesign files stored on  your local HD, it only seems to occur with files stored in a share on a Windows server accessed via SMB.
    Cheers
    Phil

  • Renaming Actual Master Files?

    In the What's New section it states the following...
    Rename actual master files and assign version names within Aperture using the improved File-Renaming tools.<<</div>
    As far as I can tell this is only half true.
    If you relocate the master files out of the library and tell it to use the new Version name it will rename the file, but inside of Aperture it still uses the original file name (MG0001) as the "File Name". If you consoldate the master files back in they get changed back to the original file name again.
    In the batch rename you cannot rename the original file, just the versions.
    Unless I'm missing something there is no way to really rename the originals and have Aperture update its internal DB. Anyone have any ideas?

    I have a post tied into this same question -
    http://discussions.apple.com/thread.jspa?threadID=668589&tstart=0
    "Is the new option to change the master filename only available on import? I can't seem to find a command to do it once images are within Aperture (library or referenced).
    I usually import images from an assignment. Edit them and then batch rename so that the client gets a coherently named group of images with no gaps. If the actual renaming of the master filenames is only upon import then it would be less useful since the edit is not done at that point.
    Also, when I move select images to the external editor I'd like to retain the same file name not revert to a different file name which is what happens when the version name and the master filename differ. "
    As you say, Aperture needs a way to update it's internal DB so that the renamed master file name is used.

  • Get name of executing jar-file (who-am-i)

    Hi,
    I'm planning to use a jar-file for a JAVA-application that holds all classes and an additional file with initial values (init.txt). This should allow an easy way to change initial behavior without having to recompile the code (I mean I could put all the initial values directly into the code). So I simply change init.txt and deploy the jar-file.
    To achieve this I need a way to find out the name of the jar-file that is currently executing. With that I can open the jar-file from within the code and do the rest (I'm not going to bother you with this ;) ).
    In C it was pretty simple, an argv[0] would do it. But how does it work in JAVA? I only have access to the parameters passed to the program.
    EXAMPLE:
    ========
    The command line looks like this:
    java -jar MyApp.jar
    MyApp.jar contains this (among others):
    |- MyApp.class
    |- init.txt
    In this example I need to get the information that I'm "MyApp.jar". I already have the rest of the code so I'm only missing this little thingy.
    Thanks beforehands for help.

    No, you should NOT need the name of your JAR file. You are probably coding it up the wrong way. If what you're after is to be able to read that "init.txt" file, then do so via something like:
    InputStream initStream = getClass().getResourceAsStream("/init.txt");
    rather than using filename-based API's.

  • Log4j - issue in configuring the file name for daily rolling file adapter

    We have configured the log4j properties. We want to create back-up of log file each hour. The file name of the log file is MyApp.log and as per the below configuration after each hour backup file is created as
    MyApp.log<<time>>
    but we want that file should be created in follogin format
    MyApp<<time>>.log
    Below are the log4j properties configured, please let us know, what should be the correct option to create the filename in desired format.
    # Set root logger level to DEBUG and its only appender to MyApp.
    log4j.rootLogger=DEBUG, MyApp
    log4j.appender.MyApp=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.MyApp.File=D:/logs/MyApp.log
    log4j.appender.MyApp.DatePattern='.'yyyy-MM-dd-HH
    log4j.appender.MyApp.Append=true
    log4j.appender.MyApp.layout=org.apache.log4j.PatternLayout
    log4j.appender.MyApp.layout.ConversionPattern=[%d{yyyy-MM-dd} %d{HH:mm:ss z}] %m%n

    yes you can use /SAPDMC/SAP_LSMW_IMPORT_TEXTS via LSMW
    In the SAP system, there is no uniform rule for the structure of the actual text key Textname. However, in order to be able to maintain the structures and fields, you have to know what the structure of text name as well as the values for text object and text ID are.
    Procedure
           1.      Display a text of the required text type.
           2.      Branch to the editor.
           3.      Choose Goto > Header.
    The Text header dialog box appears.
    Result
    In the Text header dialog box, you gather the required information.

  • CS6 - long path names in 3D material file tabs

    When I open the materials files in a 3D file, the tabs at the top of the screen display a long and meaningless path C-_Documents and Settings_Graecyn_My Documents_Photoshop plus the name of the 3d file, plus the name of the materials file.  If I have a few material files, the actual name of the file is obscured. Is there a way to shorten that to just display the name of the material file, or the 3D file plus the material file?  I didn't see it in Preferences. It slows me down to have to go to the Windows menu to figure out which one is which. 

    The long path issue is not a PowerShell issue, but a 'feature' (some might call it a bug) in Windows. There are two main ways to work around it: make sure you don't create overly long paths and use 8.3 names. Obviously, if your users are not creating deep
    paths, you don't have the issue, but I realise persuading users to do sensible things is probably a waste of time in some cases. You could tell the users that files with names that are over long will just get deleted. It might help focus their minds?
    One possible workaround, which I've not tested, would be to dynamically create a psdrive with a drive letter that points to somwhere part way down the folder path. For example, if your path is c:\foo\bar\foobar\barfoo\x\y\FileIWantToDealWith.Txt, then create
    a new drive pointing to c:\foo\bar\foobar\barfoo\x with a drive letter of X:. then look at x:\y\FileIWantToDealWith.txt.
    Thomas Lee <[email protected]>

  • Different log file name in the Control file of SQL Loader

    Dear all,
    I get every day 3 log files with ftp from a Solaris Server to a Windows 2000 Server machine. In this Windows machine, we have an Oracle Database 9.2. These log files are in the following format: in<date>.log i.e. in20070429.log.
    I would like to load this log file's data to an Oracle table every day and I would like to use SQL Loader for this job.
    The problem is that the log file name is different every day.
    How can I give this variable log file name in the Control file, which is used for the SQL Loader?
    file.ctl
    LOAD DATA
    INFILE 'D:\gbal\in<date>.log'
    APPEND INTO TABLE CHAT_SL
    FIELDS TERMINATED BY WHITESPACE
    TRAILING NULLCOLS
    (SL1 DATE "Mon DD, YYYY HH:MI:SS FF3AM",
    SL2 char,
    SL3 DATE "Mon DD, YYYY HH:MI:SS FF3AM",
    SL4 char,
    SL5 char,
    SL6 char,
    SL7 char,
    SL8 char,
    SL9 char,
    SL10 char,
    SL11 char,
    SL12 char,
    SL13 char,
    SL14 char,
    SL15 char)
    Do you have any better idea about this issue?
    I thought of renaming the log file to an instant name, such as in.log, but how can I distinguish the desired log file, from the other two?
    Thank you very much in advance.
    Giorgos Baliotis

    I don't have a direct solution for your problem.
    However if you invoke the SQL loader from an Oracle stored procedure, it is possible to dynamically set control\log file.
    # Grant previleges to the user to execute command prompt statements
    BEGIN
    dbms_java.grant_permission('bc4186ol','java.io.FilePermission','C:\windows\system32\cmd.exe','execute');
    END;
    * Procedure to execute Operating system commands using PL\SQL(Oracle script making use of Java packages
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "Host" AS
    import java.io.*;
    public class Host {
    public static void executeCommand(String command) {
    try {
    String[] finalCommand;
    finalCommand = new String[4];
    finalCommand[0] = "C:\\windows\\system32\\cmd.exe";
    finalCommand[1] = "/y";
    finalCommand[2] = "/c";
    finalCommand[3] = command;
    final Process pr = Runtime.getRuntime().exec(finalCommand);
    new Thread(new Runnable() {
    public void run() {
    try {
    BufferedReader br_in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
    String buff = null;
    while ((buff = br_in.readLine()) != null) {
    System.out.println("Process out :" + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    catch (IOException ioe) {
    System.out.println("Exception caught printing process output.");
    ioe.printStackTrace();
    }).start();
    new Thread(new Runnable() {
    public void run() {
    try {
    BufferedReader br_err = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
    String buff = null;
    while ((buff = br_err.readLine()) != null) {
    System.out.println("Process err :" + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    catch (IOException ioe) {
    System.out.println("Exception caught printing process error.");
    ioe.printStackTrace();
    }).start();
    catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    public static boolean isWindows() {
    if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1)
    return true;
    else
    return false;
    * Oracle wrapper to call the above procedure
    CREATE OR REPLACE PROCEDURE Host_Command (p_command IN VARCHAR2)
    AS LANGUAGE JAVA
    NAME 'Host.executeCommand (java.lang.String)';
    * Now invoke the procedure with an operating system command(Execyte SQL-loader)
    * The execution of script would ensure the Prod mapping data file is loaded to PROD_5005_710_MAP table
    * Change the control\log\discard\bad files as apropriate
    BEGIN
    Host_Command (p_command => 'sqlldr system/tiburon@orcl control=C:\anupama\emp_join'||1||'.ctl log=C:\anupama\ond_lists.log');
    END;Does that help you?
    Regards,
    Bhagat

  • ORA-01103: database name 'ORDB' in control file is not 'ORCL'

    hey there !!
    11.2.0
    win 7 pro
    let me tell u whole scenario for how i reach to this error - ORA-01103: database name 'ORDB' in control file is not 'ORCL'
    -installed new 11g ( test/ practice environment )
    -by default database created 'ORCL' while installation
    -created another instance 'ORDB' ( my aim was to create auxiliary database/duplicate database )
    -done well according to oracle documents and SUCESSFULLY created a duplicated database
    -i thot of sycnronization to auxiliary to target db , so i read docs and learn that you can issue
    DUPLICATE TARGET DATABASE TO dupdb ( its an oracle Doc's exmple so i put my db name and path accordingly )
    SKIP TABLESPACE tools
    LOGFILE
    GROUP 1 ('/duplogs/redo01a.log',
    '/duplogs/redo01b.log') SIZE 200K REUSE,
    GROUP 2 ('/duplogs/redo02a.log',
    '/duplogs/redo02b.log') SIZE 200K REUSE;NOW, process was Failed , above command didn work bcos of some syntax error .
    BUT what happned is - now whenever i connect both target and auxiliary database from RMAN it shows this -
    C:\Users\Administrator>rman target /@orcl auxiliary /@ordb
    Recovery Manager: Release 11.2.0.1.0 - Production on Fri Apr 5 10:54:04 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: ORCL (DBID=1339650140)
    connected to auxiliary database: ORCL (not mounted)
    RMAN>and also whenever i connect Target ( main , not auxiliary db ) from SQL it shows the error that i described in title .
    I feel like something BUG because this happned to me 5th time , in that 5 times 4 times i got this error while i was duplicating a database . and also after sucessfully duplicated DB ( that was 5th time )
    Thanks
    Regards

    Hi ,
    check the db_name parameter in init parameter file.
    Edited by: Jamsher on Apr 4, 2013 10:33 PM

  • Help for: ORA-01103: database name PRIMARY in control file is not STANDBY

    Hello all, this will be my first post to the support forum. I'm an associate dba with just 6 months on the job, so if I've forgotten something or not given some infromation that is needed please let me know.
    I've also combed the forums/internet, and some of the answers haven't helped. The Oracle Document ORA-1103 While Mounting the Database Using PFILE [ID 237073.1] says my init.ora file is corrupted, but creating a new init.ora file from the spfile does not help. Neither does just starting from the spfile. I have older copies of the init.ora file and the spfiles that the database was running on previously, so I believe they are good.
    This standby NIRNASD1 has existed previously, I had to refresh the primary NIKNASD2, and then re-instantiate NIRNASD1 after the refresh is complete.
    My env is set correctly, and my ORACLE_SID has been exported to NIRNASD1
    NIKNASD2 = Primary Database
    NIRNASD1 = Secondary/Standby Database
    Goal: Creation of Logical Standby NIRNASD1 after creating Physical Standby from NIKNASD2
    My database versions are 10.2.0.4.0, and the databases are on a Unix server. Both databases are located on separate servers.
    Steps that I have taken:
    I used RMAN to backup our primary database to the staging area:
    $ rman target /
    run {
    backup database
    format '/datatransa/dg_stage/%U'
    include current controlfile for standby;
    sql "alter system archive log current";
    backup archivelog all format '/datatransa/dg_stage/%U';
    I used RMAN to Create Secondary Database utilizing RMAN DUPLICATE command.
    RMAN> run {
    2> allocate auxiliary channel auxdisk device type disk;     
    3> duplicate target database for standby NOFILENAMECHECK;
    4> }
    On Secondary database I started Managed Recovery mode
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    (I used pfile here, thinking that I needed to mount the database to the pfile so that the database would see the change in the dataguard parameters in the init.ora file, the change from logical to physical- I commeneted out the logical and uncommented the physical line)
    # Dataguard Parameters
    For logical standby, change db_name to name of standby database.
    db_name=NIKNASD2 ### for physical, db_name is same as primary
    #db_name=NIRNASD1 ### for logical, db_name is same as unique_name
    SQL> STARTUP MOUNT PFILE = /oraa/app/oracle/product/1020/admin/NIRNASD1/pfile/initNIRNASD1.ora;
    ORACLE instance started.
    Total System Global Area 1577058304 bytes
    Fixed Size 2084368 bytes
    Variable Size 385876464 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 14692352 bytes
    Database mounted.
    SQL> ALTER DATABASE recover managed standby database using current logfile disconnect;
    I then verified the Data Guard Configuration by using “alter system archive log current;” on the primary database and watching the sequence number change in the secondary database.
    I made sure that:
    •     The primary database was in MAXIMUM PERFORMANCE MODE
    •     Stopped managed recover on the standby database: alter database recover managed standby database cancel;
    •     Built a logical standby data dictionary on the primary database
    •     The db_name in init.ora was changed (this is in our document at my job)
    •     I changed my database name (from physical to logical) in my init.ora pfile (reverse of what I did above)
    # Dataguard Parameters
    For logical standby, change db_name to name of standby database.
    #db_name=NIKNASD2 ### for physical, db_name is same as primary
    db_name=NIRNASD1 ### for logical, db_name is same as unique_name
    I then went to shutdown my standby database and re-start it in a mount exclusive state, which is where I get the ORA-01103 Error (Again I used the pfile, thinking that I needed to tell the database it is now a logical standby):
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> STARTUP EXCLUSIVE MOUNT PFILE = /oraa/app/oracle/product/1020/admin/NIRNASD1/pfile/initNIRNASD1.ora;
    ORACLE instance started.
    Total System Global Area 1577058304 bytes
    Fixed Size 2084368 bytes
    Variable Size 385876464 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 14692352 bytes
    ORA-01103: database name 'NIKNASD2' in control file is not 'NIRNASD1'
    From what I understand of the process, the name in the control file is correct, I want it to be NIRNASD1. But the database for some reason thinks it should be NIKNASD2. The following are the parts of my init.ora file that include the dataguard parameters:
    # Database Identification
    db_domain=""
    #db_name=NIRNASD1
    #db_unique_name=NIRNASD1
    # File Configuration
    control_files=("/oradba2/oradata/NIRNASD1/control01.ctl", "/oradba3/oradata/NIRNASD1/control02.ctl", "/oradba4/oradata/NIRNASD1/control03.ctl")
    # Instance Identification
    instance_name=NIRNASD1
    # Dataguard Parameters
    #db_name=NIKNASD2 ### for physical, db_name is same as prmary
    db_name=NIRNASD1 ### for logical, db_name is same as unique_name
    db_unique_name=NIRNASD1
    dg_broker_start=TRUE
    db_file_name_convert='NIKNASD2','NIRNASD1'
    log_file_name_convert='NIKNASD2','NIRNASD1'
    log_archive_config='dg_config=(NIRNASD1,NIKNASD2)'
    log_archive_dest_1='LOCATION="/oraarcha/NIRNASD1/" valid_for=(ONLINE_LOGFILES,all_roles) db_unique_name=NIRNASD1'
    #log_archive_dest_2='LOCATION="/oraarcha/NIKNASD2/" valid_for=(standby_logfiles,standby_roles) db_unique_name=NIRNASD1'
    log_archive_dest_2='LOCATION="/oraarcha/NIKNASD2/" valid_for=(standby_logfile,standby_role) db_unique_name=NIRNASD1'
    STANDBY_ARCHIVE_DEST='LOCATION=/oraarcha/NIKNASD2/'
    # Parameters are not needed since this server will NOT become primary
    #log_archive_dest_2='service=NIKNASD2
    # valid_for=(online_logfiles,primary_role)
    # db_unique_name=NIKNASD2'
    fal_server='NIKNASD2'
    fal_client='NIRNASD1'
    I would appreciate any help, or pointing me in the right direction. I'm just missing something. I am reviewing the documents for building a physical and logical standby from oracle. Just not sure where to go from here.
    Thank you
    Edited by: 977917 on Dec 19, 2012 5:49 PM

    First of all, thank you both for answering my post. I've pulled up Mr. Hesse's page and will make it a go-to staple.
    We're in the process of upgrading our databases, but we have 130+ databases and only six Oracle dba's, and I'm one of them. It's a large corporation, and things move at a "slow and tested" pace.
    The pfile parameters listed above are from my secondary/standby database. And I do want to create a logical standby.
    I forgot to mention that we do use DataGuard Broker, but I did not think that would be the cause of why the database was starting up incorrectly, so I did not mention it. My apologies there.
    As far as the db_name, here's my question on that. It's my understanding the the db_name should be the name of the primary database when you are working with a physical standby, but as soon as you convert it to logical, you should change the db_name to the secondary/standby database? Am I correct on that?
    Leading from that, during the process of creating the physical standby and converting the physical standby to the logical standby, should I change the db_name in the secondary/standby database in the spfile and never use the pfile at all? For instance, when I create the physical standby I have to change the db_name in the standby to the PRIMARY database, so that makes me think I should change db_name in the spfile? (If you see above, I changed db_name in the pfile and did a startup pfile)
    This morning I was able to reach out to a fellow DBA (they are were asleep when I posted this last night), and they tried a few things. We had a redirect in the standby directory /oraa/app/oracle/product/1020/dbs folder that looked like this: spfileNIRNASD1.ora -> /oraa/app/oracle/product/1020/admin/NIRNASD1/pfile/spfileNIRNASD1.ora
    She removed the redirect and the startup mount exclusive then worked without the error.
    Thank you again for your help Mr.Quluzade and Mr. Hesse, I appreciate you all taking the time to teach someone new to the craft. I will definitely read up on the link that you sent me.
    Chris Cranford

  • Names of iTunes Music Files

    I copied (imported?) several songs from one of my CDs into iTunes. The filenames appearing on the monitor are something like file01, file02, etc. I transferred (downloaded?) those files to my iPod Namo. So far, so good. I copied several more songs from a different CD into iTunes. Again, the filenames are something like file01, file02, etc. I transferred those files to my iPod Nano.
    The first group of songs was again downloaded to the iPod along with the second group. I'd like to copy more CDs, but I don't want to download the first group for the third time.
    I wanted to rename the files; but I can't find them. I looked at the names of all the files in the iTunes directory and subdirectories. I don't see any filename that I recognize.
    I would appreciate any help. Thanks very much.

    jasont768 wrote:
    1. When I say files I mean .mp3 music that I am transferring from my hard drive into my iTunes account so that they may be transferred onto an iPod and iPhone.
    You do not and cannot transfer files "from your hard drive into iTunes". If the file is on your computer's hard drive, you "add the file" to your iTunes Library. iTunes is an index (or list) of your music. The music is not "in iTunes".
    jasont768 wrote:
    1. ... And yes the actual file name in Windows is being altered.
    2.  This happens to song titles.  For instance on my computer "Level 4- dance mix" becomes "Track 1" on iTunes and also on my iPod after files are imported into iTunes
    Okay - let's be clear;
    what is the filename (in your computer's explorer) of the "Level 4- dance mix" before you add it to iTunes?
    what does that filename become after adding the song to the iTunes library?
    What track title (song name) and artist is displayed by iTunes once you have imported the file into your library?
    Remind me later to explain what is happening with the numbering; 1, 10, 11, 2 etc.

Maybe you are looking for

  • Adding Headers and Footers in Acrobat 5.0

    Hello, How would I add a header and footer to every page in a pdf using Acrobat 5.0? Thank You

  • My serial number is not valid?what do i do?

    my serial number is not valid?what do i do?

  • Converting Flash Remoting AS2 to AS3

    Hello I was wondering if someone could direct me to some tutorials on Flash Remoting for AS3. I would like to convert my old AS2 code over but I can't find any information on that. Does this functionality still exist for AS3? Adam

  • Commitment can not be displayed

    Hi all, In asset screen layout, the supplier is hided, so the Vendor only can be filled authomaticly into the asset master record after I carry out the External Acquisition(F-90). When I want to create the asset purchase order with another vendor, I

  • Where can I find the coupon code required for registration?

    Where can I find the coupon code required for registration? I purchased the design standard at Officeworks in Australia and given the box a thorough check, but unless there is a number not labelled 'coupon code', it's definitely not there. I am using