Password file name in Unix

Hi,
on 10g R2 , on AIX 6.1
is the password file name format important ? What is it ?
Is the following a correct format :
orapwdMYDB
It is said in documents :
For name and location information for the Unix and Linux operating systems, see Administrator's Reference for UNIX-Based Operating Systems.
But I can not find Administrator's Reference for UNIX-Based.
Thanks.

user522961 wrote:
Thanks to all.
echo $ORACLE_HOME/appli/oracle/product/10.2.0/db_1
ls -ltr $ORACLE_HOME/dbs-rw-r----- 1 oracle dba 3072 Dec 15 16:00 orapwdMYDB_old
-rwx------ 1 oracle dba 1263 Dec 16 10:44 initMYDB.ora
-rwx------ 1 oracle dba 1263 Dec 16 14:18 initMYDB.ora
-rw-rw---- 1 oracle dba 24 Dec 16 14:58 lkMYDB
-rw-r----- 1 oracle dba 3072 Jan 17 13:20 orapwMYDB
-rw-rw---- 1 oracle dba 1544 Jan 17 15:00 hc_MYDB.dat
-rw------- 1 oracle dba 3584 Jan 17 15:21 spfileMYDB.ora
env | grep ORACLE
ORACLE_SID=MYDB
ORACLE_HOME=/appli/oracle/product/10.2.0/db_1
And I have no sqlnet.ora !!!!!!!!!!Also post there from sqlplus SHOW PARAMETER REMOTE_LOGIN_PASSWORDFILE

Similar Messages

  • File name under UNIX

    Hi,
    I have this problem: a part of my application is reading a file name. Sometimes the file name contains special characters: �, �.... Everything works fine when I'm testing on Windows. When I'm testing under UNIX I get '?' insteed of �. I can see that la file has a corect name on the HDD.
    Why my application displays different results on Windows and UNIX?
    Ex:
    File f = new File("bla/bla1/bla2");
    Filter filter = new Filter(".txt");
    String[] files = f.list(filter);
    The files array contains diferennts strings on Windos comparing to UNIX.

    Que? File names are allowed to contain certain characters in windows, and another set of characters in unix.
    /Kaj

  • Handling variable flat file name in UNIX environment

    Dear Forum,
    I am working in a project where,
    Online systems generate flat files with variable names (followed by timestamp) and load into a Unix directory (FTP Location) for loading into data warehouse.
    Using OWB, I will have to rename those files into a static name then execute the mapping. Once the mapping is executed the the source file should be transfered to a different directory.
    I am trying to do this using a external process in OWB process flow. I found a similar reference in the link below
    http://www.oracle.com/technology/products/warehouse/pdf/Cases/case7.pdf
    But here it is shown for windows only. As I do not know unix, I could not proceed a lot with this.
    Therefore requesting you all, please help me showing how can I achive this. I think your answer will help many others along with me, looking for the same solution. Please help.
    Kind Regads
    Zakir

    You will need to logon as your Oracle owner (the userid is ORACLE, in my case), and then issue the following commands from a terminal session:
    To create a new reports server (one in addition to the default
    in-process server), use the following commands:
    export ORACLE_HOME=<whatever your oracle home path is>
    cd $ORACLE_HOME/bin
    ./rwserver.sh <newserver name>
    To start the new server, issue:
    ./rwserver.sh server=<newserver name>
    Leave the Unix session that was used to start the server logged on unless you have something like DTWM running that will keep the server running. Otherwise, if you log off the unix session, the server will end.
    Then just substitute the new server name in your line command. The difference between the in-process server and a standalone server is that the in-process server will not always stay active - it will start when it receives a request. The standalone server will stay active all the time and wait for requests.
    If the standalone server works for you, I would suggest then putting it in the correct config files to let Enterprise Manager manage it for you. If you get that far, let me know and I can tell you how to do that also. (Plus the instructions are in the Publishing Reports To The Web manual).

  • How to creat the logical file name.

    Hello All,
    I want to create Logical file name in my program, So Please guide me  in this issue.
    Thanks

    Check this out
    http://help.sap.com/saphelp_45b/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
    FU FILE_GET_NAME
    Text
    Assign the Physical File Name Using a Logical File Name
    Functionality
    R/3 applications run on various platforms with various file systems. This function module enables you to use platform-independent logical file names in your application programs.
    Based on definitions maintained in customizing tables for platform-independent file names, the function module converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.
    For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.
    Example
    logical file name: MONTHLY_SALES_FILE
    physical file name: VALUES<PARAM_1>
    logical path: SALES_DATA_PATH
    physical path (UNIX): /usr/<SYSID>/<FILENAME>
    physical path (Windows): C:\SALES\<FILENAME>
    Example 1
    Get file name for UNIX platform
    (current system: K11)
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
    IMPORTING
    FILE_NAME = FILE
    FILE_FORMAT = FORMAT.
    Result:
    FILE = /usr/K11/VALUES
    FORMAT = WK1
    Example 2
    Get file name for UNIX platform, passing a parameter
    (current system: K11)
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
    PARAMETER_1 = '_TST'
    IMPORTING
    FILE_NAME = FILE
    FILE_FORMAT = FORMAT.
    Result:
    FILE = /usr/K11/VALUES_TST
    FORMAT = WK1
    Example 3
    Get file name for WINDOWS platform, with file name extension
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
    WITH_FILE_EXTENSION = 'X'
    IMPORTING
    FILE_NAME = FILE
    FILE_FORMAT = FORMAT.
    Result:
    FILE = C:\SALES\VALUES.WK1
    FORMAT = WK1
    Notes
    All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.
    The following concepts are used in the platform-independent assignment of file names:
    Logical file name
    A descriptive name for a file which is associated with these values:
    physical file name
    file format
    logical file path.
    If no logical file path is specified, the function module returns the physical file name only; placeholders are substituted by current values.
    Physical file name
    The physical file name may contain placeholders.
    Logical file path
    A descriptive name for a path which is associated with these values:
    syntax groups (groups of operating systems)
    physical file paths.
    Physical file path
    The physical file path is defined for a particular syntax group. It must contain the reserved word <FILENAME> as a placeholder for the file name. It may also contain other placeholders.
    Operating system
    Presentation server and application server can run under different operating systems. The current value for the application server can be obtained from the system field SY-OPSYS, the value for the presentation server by calling function module WS_QUERY.
    Both operating systems must be defined and assigned to a syntax group.
    Syntax group
    Group of operating systems with a common syntax for file and path names (e.g. HP-UX and SINIX).
    Placeholder
    Reserved words, set in angle brackets, which can be included in physical file and path names (e.g. <DATE>, <FILENAME>). You can find information on possible reserved words in the online help (F1 help) for the fields physical file name and physical file path when maintaining platform-independent file names with transaction FILE.
    If the logical path associated with a logical file name does not specify a physical path for the current operating system (syntax group), the path stored in the profile parameter DIR_GLOBAL of the current system is used for generating a complete platform-specific file name.
    Parameters
    CLIENT
    LOGICAL_FILENAME
    OPERATING_SYSTEM
    PARAMETER_1
    PARAMETER_2
    PARAMETER_3
    USE_PRESENTATION_SERVER
    WITH_FILE_EXTENSION
    USE_BUFFER
    ELEMINATE_BLANKS
    EMERGENCY_FLAG
    FILE_FORMAT
    FILE_NAME
    Exceptions
    FILE_NOT_FOUND
    Function Group
    SFIL
    Thanks
    mahesh

  • How to change the default password file's name and path when the database created?

    how to change the default password file's name and path when the database created?
    null

    Usage: orapwd file=<fname> password=<password> entries=<users>
    where
    file - name of password file (mand),
    password - password for SYS and INTERNAL (mand),
    entries - maximum number of distinct DBA and OPERs (opt),
    There are no spaces around the equal-to (=) character.

  • Reading file names in the unix box

    Hello,
    I did the following to read the files from the local directory.
    String s1 = "c:\samplefiles"
    File dir = new File(s1);
    if(dir.isDirectory())
    String listoffiles [] = dir.list();
    for(int i = 0; i <listoffiles.length ; i++)
    System.out.println(listoffiles);
    else
    System.out.println("Its not a directory");
    How can i read and print the file names in the unix box?
    Thank You.
    Kumar

    Thank You for the reply.
    In my custom page, i am trying to include a search page which includes date parameters based on which the pdf files in the unix box should be displayed in the page as a list. (The pdf file names start with the date).
    Once the user clicks the file names displayed in the page, i need to open the pdf. This part i can handle but to search the file names based on the parameter names and display in the page as the list is a bit confusing.
    Thank You.

  • How to store the File Name from a Unix Directory into a ODI variable?

    Hi,
    I have built a ODI package with the following steps:
    1. ODI is polling for a flat file in a Unix directory. I have used OdiFileWait tool for this purpose. Here the file name is not fixed, so I am using wild character (*) to poll for file. Example: DF*ABC1*.DAT where the first wild character denotes 1 letter and the second wild character denotes 2 digits.
    2. In the second step, if the file is found, I am moving the file to ODI file server path (../oracledi/demo/file). Here I have used ODIFileMove tool.
    3. Then I am using an ODI Interface to Load the file data into a Oracle database table.
    4. I am using a Process log table to keep the log for each step I am executing in ODI that is ODIFileWait, ODIFileMove, Interface etc. for each file. In this table a row needs to be inserted after ODIFileWait tool gets the file, with the File Name and File Date. Later on this row will be updated as the consequent steps are executed.
    Here is my concern, I need to get the exact File Name of the file after ODIFileWait gets the file and I need to insert that in the Process Log table after the ODIFileWait step gets a file. So if I can store the File Name in a ODI Variable, I can insert it into the Process log table at this point. This I am not able to do.
    The files are coming in a different directory (not in ODI file server path), So after getting the file it is moved to ODI file server path (../oracledi/demo/file)
    The Files which I am processing are fixed length format. Also, the File name and File Date is stored in the 1st Record(Header record) of the files.
    Kindly provide me suggestions to implement this in my code.
    Thanks and Regards,
    Anik
    Edited by: 809820 on Nov 10, 2010 11:36 PM

    Look at this link -http://odiexperts.com/getting-one-or-several-unknown-files-from-a-directory
    change the command to fetch the ls command and write into File and then using either java or jython break the data and fetch the file name and date and insert into log table.
    (or)
    you can use the os.system command and get the complete ls command into string and then process and insert it.
    Let us know if you need any other help.

  • Case-Insensitive File Name Search on Unix

    Hello,
    I have a program which runs on a Unix OS and it looks for some files like file.csv, and then reads these files. Basically I know the file name and I look for that file name in a particular directory.
    Now, I want to make my program case-insensitive so that if the file name is file.csv or File.csv or FILE.csv, it should still locate that file and read it.
    Any advice....
    Thanks.

    Thanks.
    Probably I have to get all the file names in that
    directory and then try to match against the file name
    (using ignore case or toUpperCase() maybe), which I
    am looking for.
    Is there a way, where I don't have to get all the
    file names in that directory and can just go and get
    the FileReader Object etc for the file which I am
    looking for.No
    /Kaj

  • Unix command to make list of file name

    Hi Gurus,
    I have seen post how to process multiple file from johngoodwin.blogspot.com.
    But what is the equlivalent command in unix to list all file names.
    I want one text file will contain all text file name and another text file will contain all csv filenames.
    Need some suggestion.Please help.
    Thanks in advance.

    Hi please follow below steps.
    vi yourfilename.sh
    then in edit mode put your command
    then save it by pressing esc : q (escape colon q)
    Now your file will be there. just run that script file in OS Command.But that file should be accessible or else give the full path for that script file.
    Thanks

  • I still can't erase an incorrect user name from the password file.

    I have been using a web site for a long time. Suddenly the user name that is supposed to be stored in my "password/user name" file is not working. I totally deleted the web site from that folder. When I go to log in, it still automatically comes up with an incorrect user name.
    Example:
    The correct user name is "[email protected]", but Firefox is coming up with "ab%49gmail.com"
    All of this even though when I went to the Security tab and have deleted the web site from the file, completely, Firefox still brings up the wrong user name when I go to log in.

    Use these steps to remove saved (form) data from a drop-down list:
    #click the (empty) input field on the web page to open the drop-down list
    #highlight an entry in the drop-down list with the mouse or cursor Down key<br>do not click the mouse or press the Enter key
    #press the Delete key (on Mac: Shift+Delete) to delete the highlighted entry

  • Password file creation ?

    We can create a password file in windows using orapwd
    how to create a password file in unix. Is it the same way?

    Hey
    Yes.
    $ orapwd
    Usage: orapwd file=<fname> password=<password> entries=<users> force=<y/n>
    where
    file - name of password file (mand),
    password - password for SYS (mand),
    entries - maximum number of distinct DBA and force - whether to overwrite existing file (opt),
    OPERs (opt),
    There are no spaces around the equal-to (=) character.

  • Password file locked??

    Hi,
    We have a reporting database on Oracle 10.2.0.4 (AIX 5.3) from which we want to create a DG physical standby.
    The process fails because of a "possible" locked password file.
    I have sorted things out, and it turns out that even on UNIX, when copying the file it says:
    $ cp orapwREPPRD /tmp
    cp: orapwREPPRD: A system call received a parameter that is not valid.Has anybody seen this behaviour. Can it be that the database holds an exclusive lock on the file, making it impossible for the OS to read/copy the file
    The file's function looks OK. It gets updated if I grant 'sysdba' to a certain user.
    However another database on the same server doesn't show this behaviour, so it could be the password file somehow got corrupted
    The initfile says
    SQL> show parameter remote_login_passwordfile
    NAME TYPE VALUE
    remote_login_passwordfile string EXCLUSIVE
    SQL> Can I (simply) recreate the password file while the database is up and running?
    Any hints are appreciated
    Thanks

    Password file is used when the first time connection is requested using it. So its not going to impact your current db if you are going to remove it. See here,
    SQL> select * from V$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> select status from V$instance;
    STATUS
    OPEN
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    -bash-3.00$ cd $ORACLE_HOME
    -bash-3.00$ cd dbs/
    -bash-3.00$ ls
    hc_orcl.dat initdw.ora initorcl.ora lkPROD orapwprod spfileprod.ora
    hc_prod.dat init.ora lkORCL orapworcl spfileorcl.ora
    -bash-3.00$ rm orapworcl
    -bash-3.00$ ls
    hc_orcl.dat hc_prod.dat initdw.ora init.ora initorcl.ora lkORCL lkPROD orapwprod spfileorcl.ora spfileprod.ora
    -bash-3.00$ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Aug 13 15:53:11 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select status from V$instance;
    STATUS
    OPEN
    SQL>
    So if you are going to change the password file also, it won't impact the current db.
    HTH
    Aman....                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • GRANT failed: password file missing or disabled

    Hi,
    I created password file using
    orapwd FILE=orapwprj ENTRIES=30 (where prj is the instance name)
    SQL> show parameter remote_login_passwordfile
    NAME TYPE VALUE
    remote_login_passwordfile string EXCLUSIVE
    SQL> grant sysdba to rempar;
    grant sysdba to rempar
    ERROR at line 1:
    ORA-01994: GRANT failed: password file missing or disabled

    Command to be used as
    orapwd file=password_file_name_with_complete path password=the_passwordBy default, the password file should be located in $ORACLE_HOME/dbs location for UNIX platform with password file format as "orapw<SID>"
    For windows, the password file should be located in %ORACLE_HOME%\database location with password file format as "PWD<SID>"

  • How to open orapwd tool to create password file?

    Hi Guys,
    I got information as
    orapwd
    orapwd file=password_file_name password=the_secret_password
    orapwd file=password_file_name password=the_secret_password entries=n
    There is a default location and name for password files. When a password file is created, it should be created in that location.
    n specifies the maximum number of distinct DBAs and OPERs that can be stored in the password file.
    orapwd is a command line tool to create password files.
    How to open orapwd tool to create password file?
    Thanks
    Jim

    Hi
    ORAPWD is a oracle utility to craete a password file to identify users that can use the SYSDBA and SYSOPER privileges when connecting to the database.Its not a GUI utility.It is run on the cmd(in windows) abd on the terminal(in unix).
    To create the password file the command is
    orapwd file=filename  password=password entries=max_users
    You can refer to below links
    [http://download-uk.oracle.com/docs/html/A97297_01/ch1_admin.htm#sthref215]
    [http://www.oracleutilities.com/OSUtil/orapwd.html]
    HTH
    Anand

  • Passing file name dynamically to sql loader ctl file

    Hi,
    I am new to scripting and I have a complex requirement involving writing a script.
    Requierment:
    I need to upload a CSV file from a FTP server into oracle table using SQL Loader. The file name resembles like APF0912312359.csv represents 31-DEC-2009 23:59 and there will be multiple files in same day indicated by differnt timestamp as its filename. Once I load a file using SQL loader, I need to move the file to another directory for archival.
    Since the sql loader ctl file has a fixed file name, I would like to know how I can pass the file name dynamically to ctl file to load a new file every time it runs.
    Any help is greatly appreciated..
    Bye
    Sudheer
    Edited by: user2138419 on Oct 28, 2009 4:08 PM

    I agree with Pradeep in regards to declaring the file names on the command line. However, I do have a concern regarding presenting the password on the command line as any user that can issue a ps (assuming Unix ~= Linux here) would be able to read it while the sqlldr command is running.
    Unfortunately, you may not always have the option of declaring the files on the command line. I was recently challenged with this in a Windows 2003 Server environment running SQL*Loader: Release 10.2.0.1.0. In this environment I found that I am able to set a variable file name in a calling batch file and use that value in the control file successfully. Just to demonstrate the approach:
    Batch file:
    set IN_FILE=’c:\inbound\load_me.txt’
    sqlldr user/pswd@db PARFILE=’c:\parameters.txt’
    Parameter file:
    errors=500000
    rows=50000
    control=%CTL_FILE%
    bad=%BAD_FILE%
    discard=%DSC_FILE%
    log=%LOG_FILE%
    Control file:
    LOAD DATA
    INFILE ‘%IN_FILE%’
    INSERT
    INTO TABLE table_to_be_loaded
    I’m really interested to see if this would work on Unix.
    -Luke

Maybe you are looking for

  • Messages on Mac

    sooo i downloaded mountain lion and the messages isnt with imessage... i open the application and it says yahoo at the bottom corner, i need to change it to imessage, SOMEONE HELP PLEASE.

  • Error on server - printing stopped - Very First request to print any report

    vs2010 sp2 CR13 sp1 CR12 developed reports requested in app with no mods I'm getting there but I can't get the very first print request honored regardless of size to print on the very first request but will print when re-requested. A very large detai

  • Can't get it to work after 3 of them

    I have had 3 of them I have the 3rd one here at my house but still can't get it to work.  not sure what I am doing wrong.  My sister has one and can't under stand why it will not work for me,.  I really need one the service is not really good here.

  • Copying of Text from Customer master to Sales Order

    Hi Gurus, I want that a text should be copied into a sales order from the c/s master but want to prevent any other text to be entered for that text type in Sales order. How can I do it? Thanks

  • Connecting to database in studio 8

    I tried to follow the tutorial at http://www.adobe.com/devnet/coldfusion/articles/connecting_database.html. I'm used to asp and asp.net but I'm tring to get into cold fusion. When I specify the database file as described in the tutorial, the tables c