Target of hyperlink connects since the Outlook file in the Oracle database mail

Greetings.
Lack of permissions, I can't create text file on the UNIX server.
This will not be changed.
I saved the file in the Oracle 11 g database.

I want to send e-mail to PL/SQL with attached file.
No UNIX don't scripts at all.

It's a big file.
Thought has crossed my mind.

Can I send e-mail to PL/SQL with a hyperlink that connects to the file that is stored in the Oracle database?
The target of the link is a file stored in the Oracle database.

Did anyone done this before?

Let me know your ideas.

Thank you.

Freq Oracle wrote:

I want to send e-mail to PL/SQL with attached file.
No UNIX don't scripts at all.

Can be done using UTL_SMTP or more recent UTL_MAIL.

Attachments to emails are just that - the content of the file is attached to the body of the mail. Mail arrives at its destination, the mail reader recognizes the attachment and allows it to be saved to disk (or open/read).

It's standard stuff... See MIME for more details on how to build a body of message with attachments.

Can I send e-mail to PL/SQL with a hyperlink that connects to the file that is stored in the Oracle database?
The target of the link is a file stored in the Oracle database.

Yes. You need a web server that has been configured with Oracle "+ access +"-the default is using the Apache Oracle server which includes a module called mod_plsql. This module allows the web browser to use a URL that refers to a procedure from PL/SQL web enabled in a specific database schema - and pass parameters (as part of the URL query string) to the proceedings.

You can also use Oracle EPG (Extended procedure gateway according to me, is what does the acronym). This provides a web server directly within the Oracle instance using Oracle XDB (integrated database of XML). It also has a module of type mod_plsql which provides that a web interface (via http) enabled PL/SQL procedures.

This procedure can be a procedure "+ document download. Oracle provides a system procedure called WPG_DOCLOAD.download_file ()+ you can use inside this active web PL/SQL procedure. This will return the contents of the blob/clob as a 'file' in the web browser.

For example, a download web-enabled simplistic procedure will look something like this:

create or replace procedure downloadFile( fileName varchar2 ) is
        b       blob;
        mimeType varchar2(50);
begin
        select
            file_content, mime_type  into b, mimeType
        from my_documents where file_name = fileName;

        OWA_UTIL.mime_header( mimeType, false );
        HTP.p('Content-Length: ' || DBMS_LOB.getlength(b));
        OWA_UTIL.http_header_close;
        WPG_DOCLOAD.download_file( b );
end;

The URL will look like this:

http://my-webserver.my-domain.com:7777/pls/ora/scott.downloadfile?filename=somefile.doc

where:
Scott.DownloadFile = name of the PL/SQL procedure
filename = somefile.doc = name values of the parameter to pass to the procedure

Tags: Database

Similar Questions

  • problem connecting to the oracle database.

    A user cannot connect to the Oracle server. What will be the problem and the solution to the problem?

    When you post here you must give us: error codes, logs, DB versions, SO it's 32-bit is 64-bit?

    Give us more details about your problem and maybe I can help you.

  • Connect to the Oracle database fails when you use Microsoft ODBC or OLE DB Driver

    There was a problem when you apply the KB3126587 hotfix where connections to an Oracle database using the Microsoft ODBC driver fails if run from automated processes. Running the same process manually would succeed. The update issued KB3147071 solved the problem successfully.

    Yesterday, several patched have been applied and the problem came back. The patches are: KB2862152, KB2868626, KB3163244, KB3168965, KB3170455, KB3163251.

    I saw yet no acknowledgement or difficulty of Microsoft. I prefer not to uninstall security patches, but it is a problem of production.

    Any ideas what specific patch maybe breaking it again?

    Thank you

    Josh

    Server: Windows 2008 R2

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Connect to the Oracle database on a guest VM - problem

    Hi all

    I was faced with a problem with my Oracle VM. Let me explain:

    I have a virtual machine running CentOS 6 with Oracle Database 11 g 11.2.0 installed. I want to do is use SQL Developer, Toad, SQL * PLUS the host machine that is running Windows 7 64 bit.
    The virtual machine uses a host-only adapter network connection and a bridged adapter (for when I need to use internet in the box).
    Here's the question, I can ping the virtual machine to the host without problem and also I can ping the host of the virtual machine. But I can't do tnsping between the host and the VM.

    Listening port is configured as a default (port 1521) and the tnsnames.ora in hospitality is OK, but when I tnsping it I get messages from downtime.

    Is this something related to the network between the host and the VM? Can someone seated?
    Please let me know if you need more information on.

    Thanks in advance.

    Jaumzors wrote:
    Hi all

    I was faced with a problem with my Oracle VM. Let me explain:

    I have a virtual machine running CentOS 6 with Oracle Database 11 g 11.2.0 installed. I want to do is use SQL Developer, Toad, SQL * PLUS the host machine that is running Windows 7 64 bit.
    The virtual machine uses a host-only adapter network connection and a bridged adapter (for when I need to use internet in the box).
    Here's the question, I can ping the virtual machine to the host without problem and also I can ping the host of the virtual machine. But I can't do tnsping between the host and the VM.

    Listening port is configured as a default (port 1521) and the tnsnames.ora in hospitality is OK, but when I tnsping it I get messages from downtime.

    Is this something related to the network between the host and the VM? Can someone seated?
    Please let me know if you need more information on.

    Thanks in advance.

    http://www.Cyberciti.biz/FAQ/turn-on-turn-off-firewall-in-Linux/

  • Connect to the Oracle database - does not connect

    I am new to JAVA and for the first time that I am trying to connect to an Oracle using JAVA data. Well, I get an error when you try to connect to the database. I can see that the error doesn't that make strings passed to make the databases of connection are NULL. Thus, an error (see error below).

    Question
    How is the 'connection' varriable is NULL?
    It seems that the hold 'try' session was not executed. This session is broken?

    ERROR

    The database connection is not found: null
    Database connection before call: null
    Exception in thread "main" java.lang.NullPointerException
    at TestOCIApp.main (TestOCIApp.java:39)


    = JAVA START program =.

    import java.sql. *;
    import java.sql.Connection;
    to import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;

    public class TestOCIApp {}

    Public Shared Sub main (string args []) throws ClassNotFoundException,
    SQLException {}

    Fitting out = null;
    try {}
    Load the JDBC driver
    String driverName = "oracle.jdbc.driver.OracleDriver";
    Class.forName (driverName);

    Create a connection to the CCM PROD database
    String serverName = "192.168.2.144";
    String portNumber = "1521;
    String sid = "op01ccdb01";
    String url = "JDBC: thin: @" + serverName + ":" + portNumber + ":" + sid;
    String username = 'user id ';
    String password = "password";
    connection = DriverManager.getConnection (url, username, password);
    System.out.println ("connection value:" + connection);

    } catch (ClassNotFoundException e) {}
    The database driver is not found
    System.out.println ("could not find the connection to database:" + connection);
    } catch (SQLException e) {}
    Could not connect to the database
    System.out.println ("could not connect to the database connection:" + connection);
    }

    System.out.println ("connection to the base before the call:" + connection);
    Statement stmt = connection.createStatement ();
    ResultSet rset = stmt.executeQuery ("select" driver Tester Hello OIC ' |) THE USER: '! ("' result from double ');
    While (rset.next ())
    System.out.println (RSet.GetString (1));
    RSet.Close ();
    stmt. Close();
    Connection.Close;
    }
    }


    = END of JAVA program =.

    The try section runs very well but only partially because you get the exception "ClassNotFoundException", which means that it is impossible to load the Oracle driver class (so it does not reach the line where it says):

    Class.forName(driverName);
    

    You intercept this exception and then simply print a line "could not find the database connection: null". Then you let the code continue, obviously without you still initialize your variables.

    I would recommend rewriting those catch blocks throw new RuntimeException so that the code will not continue any further when an error is detected in the try or don't catch not all of them if you donot want to manage them appropriately.

    As for your problem, you probably have not added the ojdbc14.jar is to your project, and this is why it cannot find the class OracleDriver.

    Finally, try adding {noformat}

    {noformat} around your code when you post code.  It makes it a lot more readable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • Create the connection to the Oracle database

    How do I create oracle database connection using flex.

    Please mention all necessary codewise and sage (for flex as well as Oracle9i) configuration

    Thanks in advance.

    VjFlex,

    looking at your line of code

    url="DataConn.php?lal='sds'"
    

    I would not have thought you need them ' brands around sds. Unless your php code is something dindane special to manipulate, you would put normally just lal = sds and everything would be fine.

    You also say "Please pass the asp.net code, you did to do the same thing. Of course, I can't at the moment past on the actual code but the principles are the following (I use c# in ASP.NET as language server-side in this case and SQL server in the database and did not show the string for connection etc - you already know how to do as your database)

    sql_call = "select top 10 t1.a, t2.b, t2.c from t1, t2 where t1.id=t2.id order by a";sql_server_command = new SqlCommand(sql_call, sql_server_connection);sql_server_command.CommandType = CommandType.Text;sql_server_data_adapter = new SqlDataAdapter(sql_server_command);dataset = new DataSet();sql_server_data_adapter.Fill(dataset);datatable = dataset.Tables[0];call_encoded = "";for (int i = 0; i < datatable.Rows.Count; i++)  {    data_record = "" +      "" + datatable.Rows[i][0].ToString() + "" +      "" + datatable.Rows[i][1].ToString() + "" +      "" + datatable.Rows[i][2].ToString() + "" +      "";    call_encoded += data_record;  } // for icall_encoded += "";return call_encoded;
    

    Hope that helps. You can see that the returned table is converted into XML so that once back in Flex, it can be easily managed.

    Richard

  • Connect to the Oracle database

    Is there a 'good' documentation out there show me what I need to do, step by step would be well configure CF to work with an Oracle DB?

    I've never worked with before Oracle so I'm not familiar with all of their ODBC drivers or how to set them up.  You would think that there is a kind of tutorial out there somewhere to do!  Frustrated... > :(

    Hello

    ColdFusion Standard is not Oracle driver, you must use Oracle thin driver that supports the version of Oracle that you run in your environment.

    1. download the thin driver and copy it to \ColdFusion9\lib.

    2. restart ColdFusion service so that it will load the driver class.

    3. connect to CF Admin > Datasources > adds a new DB > select other drop down.

    4 URL = jdbc:oracle:thin:@//{HostName}:/SID = "{SID_NAME}.

    5 class driver: oracle.jdbc.driver.OracleDriver

    I hope this helps.

    Thank you

    Priyank

  • Unable to connect to the Oracle 10g transparent VBA code

    Dear all,

    I am unable to connect to the oracle database, use the code for the same below.
    And the name of the server is PRDCCB, my TNSNAMES file. ORA file is placed correctly, and defined environment variable path.
    Fanny created in VBA ADO objects.
    But am not able to connect error is always the driver's SQLSETConnectAttr failed

    Help, please



    Void Ora_Connection()

    Con Dim As ADODB. Connection
    Dim rs As ADODB. Recordset
    Dim query As String
    The con value = New ADODB. Connection
    Set rs = New ADODB. Recordset


    ' - Replace below highlighted the names with the corresponding values

    con. Open ("Driver = {Microsoft ODBC for Oracle};" & _)
    "CCBPRD = DESCRIPTION =" & _
    "(ADDRESS =(PROTOCOL=TCP)"& _
    "(HÔTE = 10.1.3.50) (PORT = 1521))" & _
    "(CONNECT_DATA = (SID = CCBPRD))); UID = Prasad; pwd = prasad23; »)

    ' - Open the above connection string.


    ' - Now connection is open and you can use queries to execute.
    ' - It will be open until you close the connection
    End Sub

    Replace pls

    con.Open ("Driver={Microsoft ODBC for Oracle}; " & _
    "CCBPRD=DESCRIPTION=" & _
    "(ADDRESS=(PROTOCOL=TCP)" & _
    "(HOST= 10.1.3.50)(PORT=1521))" & _
    "(CONNECT_DATA=(SID=CCBPRD))); uid=Prasad; pwd=prasad23;")
    

    with

    con.open ("Provider=MSDAORA;Data Source=CCBPRD;User ID=Prasad; Password=Prasad23;";)
    


    Rgds,

    Ahmer


    N.B.: To win a good reputation on the forums, and if you want that your question will be answered in due time. Kindly adopt a used to score your closed questions as soon as you give the answer. and be courteous to people who tries to help.

  • OBIEE to connect to the configuration database

    Hi, I have configured OBIEE and the only problem I have connects to an Oracle 10g database version, where the data is located. I can open the BI Server repository using the client administration tool and when I choose a database object and choose Show data... in the Properties menu for the connection pool object, it does not connect. I have triple checked that the tnsnames.ora on the UNIX file is correct. Do I need to configure a file to point to the tnsnames.ora file? I guess that's my problem.

    I installed on a Unix Solaris OBIEE platform. This is the error I get when you try to run a query in the responses:
    Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 17001] Oracle error code: 12170, message: ORA-12170: TNS: Connect timeout occurred at the call of the OIC OCIServerAttach. [nQSError: 17014] Cannot connect to the Oracle database. (HY000)

    Any help would be greatly appreciated.

    Thanks in advance!

    Mike

    You need to set the environment variables for the BI Server 3 find your Oracle client correctly in a Linux/Unix server. Here are the ones I use, you will need to change accordingly to your environment:

    export ORACLE_HOME=/opt/app/oracle/product/10.2.0.3
    Export TNS_ADMIN = / var/opt/oracle
    export LD_LIBRARY_PATH = $ORACLE_HOME/lib32: $LD_LIBRARY_PATH

    The TNS_ADMIN variable should point to where you have your tnsnames.ora, ldap.ora etc. These could be in the ./network/admin folder or as in our case in a specific folder the DBAs have installation to keep them separate in the client's file. Now, you need to know where to put these variables. OBIEE installation guide suggests using the script./OracleBI/setup/user.sh to do this, we prefer to put this on a special environment file which is executed when the user who runs the OBIEE connections. We would like to keep separate files OBIEE, so we know that it will not be lost if we upgrade to a new version or remove installation and install again.

  • Invalid connection for the Oracle 10 g Server

    Hello

    I installed Oracle 10 g server on my pc.

    I checked the Option to use the same user name and password for all accounts and used the password as an administrator

    But when I try to connect as sysdba or sysopera with admin as password it's displaying as connection not valid.

    Please tell me how I can connect to the Oracle database

    User for login names are SYS or SYSTEM. Try to connect as administrator system or admin/sys as sysdba.

    Which tool you use to connect? dbconsole, sqlplus? You should be able to connect with the authentication of the OS "/ as sysdba".

    Published by: Robert Geier on October 13, 2009 14:27

  • connection / disconnection of the oracle database

    Hello
    I looked upwards and downwards in the documentation of oracle for a good reason why we should not connect to the oracle database, delivery time of 4 or 5 Oracle sql disconnect, reconnect 4-5 sql statements and disconnect again(using sqlplus).
    What I currently have is an application that has this kind of behavior that would be as connect/disconnect to the database over 300 times in 25 minutes.
    I know that this is not scalable, but would like to show the programmer in the oracle documentation that is not a recommended bestpractes.
    Any help will be appreciated.

    What you can explain the developer that is whathappens when a connection is given and terminated, the concept of the PGA and server allocation and dealloction process. You can include more use of server resources when all that happens. Once this part is well to him, you can tell him that hisapplication this constant opening and closing of session, it don't let not the server works optimally as morethan optimize work of its apps, server would be busy giving him the connection later by removing its connetion.

    Just take a look at the documentation and found this guide, PT
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14211/design.htm#CJHFIHFC

    >
    Factors that may prevent a linear scaling include:

    Configuration, implementation and poor application design

    The application has the greatest impact on scalability. For example:

    The poor schema design can cause expensive SQL that do not evolve.

    Poor transaction design can cause problems of locking and serialization.

    Bad connection management can cause periods of poor response and reliable systems
    >

    Would that help?
    HTH
    Aman...

    Published by: Aman... April 26, 2009 15:29
    Adding link guide PT

  • How do I get the name of the web page in v$ session table in the Oracle database

    We have asp.net web application hosted on IIS (windows) and the connection to the Oracle (10g) database.


    When I query the table v$ session in the database as a Jr.DBA, I don't see the name of the program as "w3wp.exe.
    coming from the computer host IIS (web server).

    Now, it is difficult to diagnose as session in the database that refers to what web page in the web application.

    If I have 10 web pages open in my web application connecting to the Oracle database, now if I wanted to go
    session info, when I browse the v$ session all it shows me what "w3wp.exe.

    Now is there a way to get the name of the web page in the session of $ v.

    (maybe he needs a few changes to the code in the application web asp.net, change in the configuration of IIS web server as well).

    Let me know

    Dear johnpau2013,

    It's an interesting question. See the documentation below and see if they help you or not?

    DBMS_APPLICATION_INFO;

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#CHEEFBBD
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#i999290
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#ARPLS003

    Hope that helps.

    Ogan

  • RC-40201: unable to connect to the TEST database running adcfgclone.pl appsTier

    Hi Experts,

    While performing a cloning my instance of R12, I got RC-40201 error when I ran "adcfgclone.pl appsTier.

    [appltst@oracleupk bin] $ perl adcfgclone.pl appsTier

    Copyright (c) 2002 Oracle Corporation

    Redwood Shores, California, USA

    Applications Oracle rapid Clone

    Version 12.0.0

    adcfgclone Version 120.31.12010000.1

    Enter the password for APPS:

    Running:

    / data/appl_top/apps/apps_st/comn/clone/bin /... / JRE/bin/Java-Xmx600M - cp /data/appl_top/apps/apps_st/comn/clone/jlib/java:/data/appl_top/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext EI/data/appl_top/apps/apps_st/comn/clone/bin /... /Context/Apps/CTXORIG.xml-valider - pairsfile /tmp/adpairsfile_24425.lst-stade/data/appl_top/apps/apps_st/comn/clone 2 > /tmp/adcfgclone_24425.err; ECHO $? > /tmp/adcfgclone_24425.res

    Logfile located at /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log

    Provide the values required for the creation of the new file APPL_TOP context.

    Target System Hostname (virtual or normal) [oracleupk]:

    SID data system target: TEST

    Target database system [oracleupk] server node:

    Target system Base Directory: / data / appl_top

    Target system tools ORACLE_HOME directory [/ data/appl_top/apps/tech_st/10.1.2]:

    Target Web ORACLE_HOME directory system [/ data/appl_top/apps/tech_st/10.1.3]:

    Target system APPL_TOP directory [/ data/appl_top/apps/apps_st/appl]:

    Target system COMMON_TOP directory [/ data/appl_top/apps/apps_st/comn]:

    Target system Instance home directory [/ data/appl_top/inst]:

    Target system service root [activated]:

    Target Web Entry Point [active] System Services:

    Target [active] System Web Application Services:

    Target [active] Batch Processing Services system:

    Other Services target system [off]:

    You want to preserve the display [oracleupk:0.0] (y/n)? : n

    Target display system [oracleupk:0.0]: oracleupk:1.0

    System Target Pool [0-99] port: 80

    Audit of the pool of port 80

    fact: Port 80 pool is free

    Report file is located at /data/appl_top/inst/apps/TEST_oracleupk/admin/out/portpool.lst

    Information available at /data/appl_top/inst/apps/TEST_oracleupk/admin/out/portpool.lst complete port

    RC-40201: unable to connect to the TEST database.

    Create the new file APPL_TOP context of:

    /Data/APPL_TOP/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp

    The new context APPL_TOP file was created:

    / Data/APPL_TOP/inst/Apps/TEST_oracleupk/Appl/admin/TEST_oracleupk. XML

    Logfile located at /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log

    Check the context Clone logfile /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log for more details.

    Clone of fast running with the command:

    Perl java /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl = / data/appl_top/apps/apps_st/comn/clone/bin /... /JRE mode = apply dialing = / data/appl_top/apps/apps_st/comn/clone point = appsTier = CUSTOM appctxtg=/data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml contextValidated = true showProgress method

    Running:

    Perl java /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl = / data/appl_top/apps/apps_st/comn/clone/bin /... /JRE mode = apply dialing = / data/appl_top/apps/apps_st/comn/clone point = appsTier = CUSTOM appctxtg=/data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml contextValidated = true showProgress method

    Apps for password:

    Start application layer apply - Fri Oct 12 15:01:20 2013

    / données/appl_top/apps/apps_st/comn/clone/bin /... /jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /data/appl_top/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/ojdbc14.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/java:/data/appl_top/apps/apps_st/comn/clone/jlib/oui/OraInstaller.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/oui/ewt3.jar:/data/appl_top/apps/apps_st/comn/clone/ jlib/Oui/share.jar:/data/appl_top/apps/apps_st/ Comn/clone/jlib/Oui/srvm.jar:/Data/APPL_TOP/Apps/apps_st/COMN/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyAppsTier EI /data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml-/data/appl_top/apps/apps_st/comn/clone - scene showProgress

    Password APPS: log file located at /data/appl_top/inst/apps/TEST_oracleupk/admin/log/ApplyAppsTier_09121501.log

    -79% completed

    ERROR when executing apply...

    Fri Oct 12 15:07:47 2013

    ERROR: Cannot run /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl

    Contents of the log file: -.

    [AutoConfig error report]

    The following report lists the errors autoconfig met in each

    execution phase.  Errors are grouped by directory and by phase.

    The format of the report is:

    < file name > < phase > < eventually return code >

    [INSTALLATION STAGE]

    AutoConfig could not successfully run the following scripts:

    Directory: / data/appl_top/inst/apps/TEST_oracleupk/admin/install

    adgendbc.sh INSTE8_SETUP 1

    afcpnode.sh INSTE8_SETUP 1

    afgcsreg.sh INSTE8_SETUP 1

    txkWfClone.sh INSTALL_SETUP 1

    [PROFILE PHASE]

    AutoConfig could not successfully run the following scripts:

    Directory: /data/appl_top/apps/tech_st/10.1.3/perl/bin/perl-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/5.8.3-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3-je /data/appl_top/apps/apps_st/appl/au/12.0.0/perl-je /data/appl_top/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /data/appl_top/inst/apps/TEST_oracleupk/admin/scripts/adexecsql.pl sqlfile = / data/appl_top/inst/apps/TEST_ oracleupk/admin /. install

    afwebprf. SQL INSTE8_PRF 1

    amscmprf. SQL INSTE8_PRF 1

    amswebprf. SQL INSTE8_PRF 1

    bisadmprf. SQL INSTE8_PRF 1

    bisdblrp. SQL INSTE8_PRF 1

    clnadmprf. SQL INSTE8_PRF 1

    cncmprf. SQL INSTE8_PRF 1

    cseadmprf. SQL INSTE8_PRF 1

    csfadmprf. SQL INSTE8_PRF 1

    csiadmprf. SQL INSTE8_PRF 1

    eamadmprf. SQL INSTE8_PRF 1

    fteadmprf. SQL INSTE8_PRF 1

    ibywebprf. SQL INSTE8_PRF 1

    icxwebprf. SQL INSTE8_PRF 1

    oksfrmprf. SQL INSTE8_PRF 1

    wshadmprf. SQL INSTE8_PRF 1

    Directory: / data/appl_top/inst/apps/TEST_oracleupk/admin/install

    adadmprf.sh INSTE8_PRF 1

    admk80ln.sh INSTALL_PRF 1

    afadmprf.sh INSTE8_PRF 1

    afcpctx.sh INSTE8_PRF 1

    afcpgsm.shINSTE8_PRF1
    igccmprf.shINSTE8_PRF1
    jtfictx.shINSTE8_PRF1
    okladmprf.shINSTE8_PRF1
    txkJavaMailerCfg.shINSTE8_PRF1
    txkWebServicescfg.shINSTE8_PRF1

    [APPLY PHASE]

    AutoConfig could not successfully run the following scripts:

    Directory: /data/appl_top/apps/tech_st/10.1.3/perl/bin/perl-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/5.8.3-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3-je /data/appl_top/apps/apps_st/appl/au/12.0.0/perl-je /data/appl_top/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi/data/appl_top/inst/apps/TEST_oracleupk/admin/install
    adadmat.plINSTE8_APPLY1

    Fate of 31 stateful auto-configuration

    RC-50014: Fatal: failed to run the auto configuration service

    Asked by oracle.apps.ad.clone.ApplyApplTop

    ERROR: AutoConfig completed with errors. Check the logfile at /data/appl_top/inst/apps/TEST_oracleupk/admin/log/ApplyAppsTier_09121501.log for more details.

    ApplyApplTop completed successfully.

    # Check the race situation AutoConfig of ApplyApplTop

    WARNING: The autoconfiguration service has completed with errors.

    Please help me solve this problem, your prompt response will be highly appreciated.

    -Thank you

    Ankur

    Audit of the pool of port 70

    fact: Port pool 70 is free

    You used port 70 for the node of the database layer, so you will need to use the same port pool (70 instead of 80) when running "perl adcfgclone.pl appsTier.

    Thank you

    Hussein

  • DOUBLE DB: ORA-17629: unable to connect to the remote database server

    [oracle@ora11g1 ~] $ export ORACLE_SID = sales
    [oracle@ora11g1 ~] $ rman target sys/sales@sales

    Recovery Manager: release 11.2.0.1.0 - Production Wed Jun 5 13:00:15 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    connected to target database: SALES (DBID = 690066655)

    RMAN > Connect auxiliary sys/salestby2@salestby2

    connected to the auxiliary database: SALES (not mounted)

    RMAN > CURRENT SPFILE DATABASE of TARGET duplicate FOR THE EVE OF the DATABASE
    2 > DB_NAME SET = 'sales '.
    3 > SET DB_UNIQUE_NAME = "salestby2".
    4 > control_files='/u02/oradata/salestby2/control01.ctl','/u02/oradata/salestby2/control02.ctl SET'
    5 > SET DB_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / '.
    6 > SET LOG_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / ';

    From duplicate Db 5 June 13
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID = 20 type of device = DISK

    content of Script memory:
    {
    backup that copy reuse
    TargetFile ' / auxiliary format of the u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsales
    ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsalestby2' targetfile
    ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesales.ora' auxiliary format
    ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora';
    clone of SQL 'alter system set spfile = "/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora";
    }
    execution of Script memory

    From backup 5 June 13
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 58 type of device = DISK
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:26
    ORA-17629: unable to connect to the remote database server
    ORA-17627: ORA-01017: name of user and password invalid. connection refused
    ORA-17629: unable to connect to the remote database server
    continue other job steps, not a not working will not re-run
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Db in dual at 05/06/2013 13:05:27
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:27
    ORA-17629: unable to connect to the remote database server
    ORA-17627: ORA-01017: name of user and password invalid. connection refused
    ORA-17629: unable to connect to the remote database server

    Welcome to the oracle forums!

    Please take the time to go through [url https://forums.oracle.com/forums/ann.jspa?annID=1535] FAQ PAGE

    Always after 4 version oracle numbers and details of the OS.

    Post any request outside has put between.

      \
    

    Tags

    Mark your questions answers if you give the answer

    Password for the SYS user on primary and standby must be the same. Copy the master password for the backup server

    SCP $ORACLE_HOME/dbs/orapwv112 : /u01/app/oracle/product/11.2/dbs/orapwdupv112

  • ORA-17629: unable to connect to the remote database server

    Hello

    I have put Dataguard in place with primary and 1 physical standby for learning/test database:

    I do NOT plan the unloading of RMAN backups on the physics of the day before.

    Recorded the primary database with RMAN and when "resync catalog db_unique_name all;" is issued.
    I get the following error:
    ---------------------------------------------------------------------------------------------------------------------
    RMAN > catalog resync db_unique_name all;
    from full resynchronization of the recovery catalog
    full complete Resync
    resynchronization of data base with DB_UNIQUE_NAME ASTTESTB
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failed to db_unique_name resynchronization command at 28/09/2011 11:34:23
    ORA-17629: unable to connect to the remote database server
    ORA-17628: Oracle 17629 error returned by remote Oracle Server
    ------------------------------------------------------------------------------------------------------------------
    Configuration of RMAN for the main proceedings are the following:

    RMAN > show all to db_unique_name asttest;

    RMAN settings for database with db_unique_name ASTTEST are:
    CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
    CONFIGURE BACKUP OPTIMIZATION # by default
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP # by default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
    CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
    CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default

    Configuration of RMAN for instance physical standby are:

    RMAN > show all to db_unique_name asttestb;

    RMAN settings for database with db_unique_name ASTTESTB are:
    CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
    CONFIGURE BACKUP OPTIMIZATION # by default
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
    CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
    CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default

    ----------------------------------------------------------------------------------------------------------------------

    When I tested missing missing datafile and control file scenario on the primary database, it worked (Advisor to recover data)

    However, missing datafile scenario does not work on the physics of the day before.
    Here are the steps I followed:
    ********************************************
    1 renamed a file of physical data - in standby mode:

    bash - $3.2 ls - ltr

    Total 107832

    -rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log

    -rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf

    -rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf

    bash - $3.2 mv rmandg_data01.dbf rmandg_data01.dbf_old

    bash - $3.2 ls - ltr

    Total 107832

    -rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log

    -rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf

    -rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf_old


    2. restore the datafile (find the data file # view v$ recover_file):
    RMAN > restore datafile 5;



    From restoration to 5 October 11

    Segmentation fault


    3. in spite of the error, published "recover datafile command.

    4 RMAN > recover datafile 5;



    From pick up to 5 October 11

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 10 type of device = DISK

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command recover at 05/10/2011 12:00:40

    RMAN-06094: datafile 5 must be restored.


    5. manually copy the physical primary datafile - in standby mode, & then problem recover RMAN command:
    bash - $3.2 scp oracle@msudrainier:/ora03/oradata/asttest/rmandg_data01.dbf.

    rmandg_data01.dbf 100% 50 MB 16.7 MB/s 00:03

    bash - $3.2 ls - ltr

    Total 159096

    -rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log

    -rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf

    -rw - r - 1 oracle oinstall 52436992 5 Oct 11:49 rmandg_data01.dbf_old

    -rw - r - 1 oracle oinstall 52436992 5 Oct 12:01 rmandg_data01.dbf


    RMAN > recover datafile 5;



    From pick up to 5 October 11

    using channel ORA_DISK_1



    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command recover at 05/10/2011 12:01:59

    RMAN-06067: RECOVER the DATABASE required with a backup control file or created


    6. of course RMAN commands have failed to restore the missing data file;
    So I renamed the file to original and rebooted repeat services applies - this restore the data file and now the configuration state of the DG is normal.
    *********************************************************************************

    Not quite sure if I'm still he hands the right way or if the error above is related to RMAN not able to synchronize with the physics of the day before.

    The documentation I want to talk to is here (1 paragraph):

    [http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD | http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD]


    Any pointers/direction and advise is greatly appreciated.

    Best regards
    NK

    I got it!

    /home/oracle:STANDBY >$ORACLE_HOME/bin/rman target sys/ catalog /@rcatalog
    
    Recovery Manager: Release 11.2.0.1.0 - Production on Fri Oct 7 14:12:10 2011
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: PRIMARY (DBID=1562898590, not open)
    connected to recovery catalog database
    
    RMAN> resync catalog from db_unique_name all;
    
    resyncing from database with DB_UNIQUE_NAME PRIMARY
    starting full resync of recovery catalog
    RMAN output not resynced for database with DB_UNIQUE_NAME PRIMARY
    full resync complete
    

    If the necessary connection string a target/sys and a catalogue

    RMAN target sys / catalog /@rcatalog

    I did my standby

    Will try the primary

    Best regards

    mseberg

    Work on both. Great question!

    connected to target database: PRIMARY (DBID=1562898590)
    connected to recovery catalog database
    
    RMAN> resync catalog from db_unique_name all;
    
    starting full resync of recovery catalog
    full resync complete
    
    resyncing from database with DB_UNIQUE_NAME STANDBY
    RMAN output not resynced for database with DB_UNIQUE_NAME STANDBY
    
    RMAN> 
    

    Published by: mseberg on October 7, 2011 14:16

    Thanks a ton for sticking to it. I'll add this little thing to my web site.

    Published by: mseberg on October 7, 2011 14:22

Maybe you are looking for