Establish Database connection to connect to OEM Repository from Agents

I have a requirement to establish Database connection from Agent through Plug-in.
Ex:
My plug-in metadata will have a perl script which gets executed in each individual agents and it should connect to the OEM Repository database to execute a package.
Your Help is Appreciable.

You would have to take in all of the information needed to connect to the database as instance properties for your target type. So each time someone creates an instance of your target type, they'd have to enter the connection details for the repository database.
The specifics of what are needed should be in the extensibility guide where the SQL fetchlet is documented.

Similar Messages

  • OEM repository 9i

    Hi,
    Could anybody explain me or give me some good link to understand the concept of OEM repository in 9i. I found something on Internet, but I have some question without answer. I appreciate if somebody could answer or give me some links which respond to these questions:
    1) What the depenency between OEM repository and one agent of a database ?
    2) If a OEM contains more agents (for 4-5 databases) is there any data lost if the OEM is recreated ? Must I recreate it in a particulary manner not to lose data in it and to be functional after recration ?
    3) Could anybody send me some GOOD information about the concept of OEM repository ?
    any other information about OEM will be appeciated.
    Thanks to all, Paul T.

    I have some intelligent agent which are down and I want to restart them. When I do a Refresh on that node in OEM Console I get the message "Refresh Failed: VNI-4054 The Oracle Management Server is out of sync with the agent (<agent name>)". Initially I thought to recreate the OEM Repository. Now I am not sure that is a good idee. Thank, Paul.
    ... For the moment I saw that this error is still undetermined ... it must be treated as OERR: VNI-4040 Agent state is corrupted ... I continue with my research ...
    Message was edited by:
    Paul_T

  • JDBC Adapter - Established database connection failed

    Hi Guys,
    we have installed the JDBC Adapter based on the How To Guide and we checked after the installation the  Libaries :Cluster --> Server --> Libraries --> com.sap.aii.af.jmsproviderlib and the box Box "JARs Contained" was filled.
    So in my point of view we have done everything right during the installation.
    Now the developer tested theJDBC Adapter and he comes back with following Error:
    Attempt to establish database connection failed with SQL error com.sap.aii.adapter.jdbc.sql.DriverManagementException: Cannot establish connection to URL "jdbc:microsoft:sqlserver://xxx.x.xx.xxx:1433; databaseName=CZZ03;":ClassNot FoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Do you have any ideas?
    Regards
    Markus

    Hello Markus,
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

  • Sybase Connection Error - cannot establish database connection

    BO Data Services Tool -> Creation of new Data Store -> Sybase ASE
    When I tried to create a sybase datastore(New connection), I've got this error message. But I am able to connect to sybase database with client application with same connection parameter. I appreciate if someone come across same issue.
    ERROR MESSAGE
    *WARNING: Cannot establish database connecton.
    u2018Sybase connecton error: <Sybase ASE Server message number <1640> State <2> Severity <16> From Server <tstlS03>: Message Text is:
    Adaptve Server requires encrypton of the login password on the network.
    Sybase ASE Server message number <4002> State <1> Severity <14> From Server <tstlSO3>: Message Text is: Login failed.
    Sybase CS Library message number <6717S468> Severity <4>: Message Text is: ct_connectO: protocol specific layer: external error: The attempt to connect to the server failed.>.u2019 lODI- 1111341)

    I tried to create repositories for sybase, it failed.  But it succeeded when created datastore.  The procedures's as follow:
    1. Create ODBC for this sybase connection, and it should display "Connection successful" when you click "Test connection".
       (you need to specify several parameters like user id & password, server,database name and file, etc.)
    2. Create datastore by using ODBC connection.

  • Establishing Database connection for XML Data Definition?

    I have a XML Data Definition which will query data from Oracle Database.
    I did some research and tried few setting options in JDeveloper (11g), but had no luck on finding a way to connect to Database.
    My goal is to use JDeveloper to run a XML Data Definition against Database and generate a XML File with data.
    Can this be done?
    Data Definition:
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <dataTemplate name="XX_ATT_VALIDATION" description="description"
    dataSourceRef="MTS-AT"
    version="1.0">
    <properties>
              <property name="include_parameters" value="false" />
              <property name="include_null_Element" value="true" />
              <property name="include_rowset_tag" value="false" />
    </properties>
    <parameters>
              <parameter name="p_batch_id" dataType="character"/>
    </parameters>
    <dataQuery>
         <sqlStatement name="Q_HEADER_VALUES">
              <![CDATA[
    select distinct
    sci.bill_cycle,
    to_char(sci.bill_date,'mm/dd/yyyy') bill_date,
    to_char(sysdate,'mm/dd/yyyy') report_run_date
                   from st_cm_interface sci
                   where sci.record_type='05'
                   and sci.batch_id=:p_batch_id
              ]]>
    </sqlStatement>
    <dataStructure>          
         <group name="G_HEADER_VALUES" source="Q_HEADER_VALUES">
    <element name="bill_cycle" value="bill_cycle"/>
    <element name="bill_date" value="bill_date"/>
    <element name="report_run_date" value="report_run_date"/>
    </group>
    </dataStructure>
    </dataTemplate>

    Hi,
    Consider there is 2 database, Oracle_1 and Oracle_2.
    I want to fetch some table data in Oracle_2 from Oracle_1 database Stored procedure/functions through query staments and cursors. How to establish the Oracle_1 DB connection in Oracle_2 DB stored procedure/function. Is it possible?
    It's not the same how you implement the programs in java or .Net to create DB connection. It's different over here. You have use the DataBase Links in order to make to connection with another DB and use that Link in the stored procedure or function where ever its necessary as per your requirement.
    - Pavan Kumar N

  • Establishing database connection in stored procedures/functions

    Hi, any body knows how to do it....
    Consider there is 2 database, Oracle_1 and Oracle_2.
    I want to fetch some table data in Oracle_2 from Oracle_1 database Stored procedure/functions through query staments and cursors. How to establish the Oracle_1 DB connection in Oracle_2 DB stored procedure/function. Is it possible?

    Hi,
    Consider there is 2 database, Oracle_1 and Oracle_2.
    I want to fetch some table data in Oracle_2 from Oracle_1 database Stored procedure/functions through query staments and cursors. How to establish the Oracle_1 DB connection in Oracle_2 DB stored procedure/function. Is it possible?
    It's not the same how you implement the programs in java or .Net to create DB connection. It's different over here. You have use the DataBase Links in order to make to connection with another DB and use that Link in the stored procedure or function where ever its necessary as per your requirement.
    - Pavan Kumar N

  • Setup Database mail that connect with tcp/ip to the instance

    I want to setup database mail that connect to the named instance via a fixed TCP/IP port.
    This is a named instance that works with a fixed TCP/IP port
    Database mail works fine if shared memory is enabled.
    If it is disable I get the following log entry in the application log.
    Log Name:      Application
    Source:        DatabaseMail
    Date:          18/11/2014 20:56:05
    Event ID:      0
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Server.dom.be
    Description:
    1) Exception Information
    ===================
    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
    Message: There was an error on the connection. Reason: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL
    Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified), connection parameters: Server Name: server\instance, Database Name: msdb
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Void OpenConnection(Microsoft.SqlServer.Management.Common.SqlConnectionInfo)
    HelpLink: NULL
    Source: DatabaseMailEngine
    StackTrace Information
    ===================
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.ConnectionManager.OpenConnection(SqlConnectionInfo connectionInfo)
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.OpenConnection(String dbServerName, String dbName, String userName, String password, String appName, Int32 connectionTimeout)
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.OpenConnection(String dbServerName, String dbName, String userName, String password, Int32 connectionTimeout)
       at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.QueueItemProcesser.ProcessQueueItems(String dbName, String dbServerName, Int32 lifetimeMinimumSec, LogLevel loggingLevel, Byte[] encryptionKey, Int32 connectionTimeout)
    Is there a way to change the connection parameters?
    PS the Browser Service is not running

    Hello,
    If the instance is a named instance, then SQL Server Browser service should be started to be able to connect to the instance
    using TCP/IP.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • About database's  "closed  connection"

    i have stand a database called "TMIS",but now i can't start it ,after i put in the ID and the password,it always show me a message : "closed connection",i don't know what to do to help the "TMIS" start ,i tried many methods ,such as changing the listener.ora ,but it didn't help.
    the service "TMIS" always showed the status "UNKOWN",I don't know the reasons to cause my database can't connection,here is my /etc/hosts and the listener.ora
    #/etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    #here 127.0.0.1, actually i change to my own ip address
    #listener.ora
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost.localdomain)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = TMIS)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (SID_NAME = TMIS)
    ###why there was another service called "PLSExtProc")
    LSNRCTL> services
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "TMIS" has 1 instance(s).
    Instance "TMIS", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    please help me solve this question ,i'm confused by this problem.
    thank you very very much!!!
    my email address is [email protected],please connect with me !!

    ORA-12705: Cannot access NLS data files or invalid environment specified
    Cause: Either an attempt was made to issue an ALTER SESSION command with an invalid NLS parameter or value; or the environment variable(s) NLS_LANG, ORA_NLSxx, or ORACLE_HOME was incorrectly specified, therefore the NLS data files cannot be located.
    Action: Check the syntax of the ALTER SESSION command and the NLS parameter, correct the syntax and retry the statement, or specify the correct directory path/values in the environment variables.
    Set your NLS environment variable Correctly
    SQL> show parameter nls
    NAME TYPE VALUE
    nls_calendar string
    nls_comp string
    nls_currency string
    nls_date_format string
    nls_date_language string
    nls_dual_currency string
    nls_iso_currency string
    nls_language string AMERICAN
    nls_length_semantics string BYTE
    nls_nchar_conv_excp string FALSE
    nls_numeric_characters string
    NAME TYPE VALUE
    nls_sort string
    nls_territory string AMERICA
    nls_time_format string
    nls_time_tz_format string
    nls_timestamp_format string
    nls_timestamp_tz_format string
    SQL>

  • Connecting as sysdba in OEM

    I can connect as sysdba fine through sqlplus.
    I can not connect as sysdba using OEM, the famous
    'ORA-01031 - insufficient privileges' appears.
    What has to be setup to allow 'system' to sign on
    to a database using OEM? (Oracle 8.1.6)
    Thanks.

    Jerry,
    If your administrators will be using the OEM console, they do not need to be defined in the database password file. You can get them sysdba prvileges in a database known by OEM by having them access it as a already defined sysdba user.
    1. In the OEM console, there is an option called "Manage Administrators" under the "System" menu at the top of the console window. I don't have my server up, but I think I have this right.
    2. Define your user as administrator here.
    3. When they attempt to access a database from the console, they will be asked how they wish to connect.
    4. Have them enter the username/password of a user already defined in that database with sysdba prvileges.
    5. Have them select "sysdba" in the "connect as" box.
    6. Have them check the save as prefered profile or something like that. ** This one is optional. **
    7. Finish connecting to the database.
    This way, they don't have to be defined in each database password file and are all managed from the OEM console.
    HTH
    Al

  • If 2 clients can't be neighbours can they establish a direct stream connection?

    I used to have 2 computers (connected over a strange network) that could not become neigbours in the same NetGroup!
    Because of that I am now exchanging the farID's trough the database similar to the Cirrus sample (I used to exchange it trough the NetGroup).
    But now I find that even a direct stream connection between the same computers is not really possible!
    So, if 2 clients can't be neighbours is there any chance they can establish a direct stream connection?

    no.  exactly the same kind of RTMFP connection is attempted between the two computers.  direct connections and group communications are just different kinds of flows over an RTMFP session.

  • Can not create Database-based MDS connection

    Hello Dear Oracle Support,
    I am trying to use MDS to share some common dvm files. First step, I want to create a database based MDS connection but failed.
    My SOA schema is JDEV_SOAINFRA. When I test my Database based MDS connection, I got ORA-01031: insufficient privileges. What privileges I need to grand to MDS schema?
    I am using JDEV_MDS as username to establish MDS connection.
    Thank you for any suggestion and/or information,
    Alena Li

    Hello Alena!
    If you want to wait the answer from Oracle Support here.. you'll need a lot of patience.
    Is the corresponded Database Connection test succeed?
    If it also fails that, I think, your JDEV_MDS user (schema) lack of the CONNECT privilege.
    A question to you - how did you created this schema?
    You should use RCU to create the schemes  for SOA Suite (and other Oracle Middleware).
    The RCU creates the schemes with all necessary structures (tables) and grants.
    Hope this helps,
    Oleg

  • Help needed for MySQL 5 database DSN less connection with Oracle reports

    Hi,
    I am using Oracle Develper Suite and java (J2EE) for my application. I am using MySql 5 as database tool. I want to use Oracle reports of Oracle Develper suite. I have created some reports by first creating system DSN for MySql database and then connect Oracle reports to that DSN by "jdbc:odbc" connection string provided in Oracle Report developer wizard. This is working fine.
    I want to generate reports without creating system DSN (DSN less) so that i can use my application on any computer without creating DSN for Oracle Reports. I am deploying my application on OC4j as "EAR" file.
    Help in this regard will be highly appreciated.
    Regards.

    Using an 8i client, you will need to configure the tnsnames.ora file with appropriate connection information if you are using local naming. If you are using host naming or something like an Oracle Names server to resolve TNS aliases, you can skip the tnsnames.ora configuration. A default installation of the Oracle client, though, will probably be using local naming.
    If the tnsnames.ora file is configured, or you have configured an alternate way of resolving TNS aliases, you should be able to use the connection string
    DRIVER={Oracle ODBC Driver};DBQ=<<TNS alias>>;UID=system;PWD=managerIf you wanted to move to the 10g client (the 10g Instant Client could be useful here), there are some streamlined naming methods that could be used instead of configuring the tnsnames.ora file.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How do I establish a dial-up connection in Labview to FTP files (I have the internet connectivity toolkit)?

    I'm writing an application that will automatically update files on a server, using the internet toolkit's FTP vi's. It works fine with a LAN, but I'm not sure how to establish a dial-up connection via a telephone modem.
    Ultimately, I'd like the program to dial-up, connect, ftp files, then hang up. So far I have used AT commands through the serial compatiblity vi's to dial up and logon to a local internet provider. The provider then spat out an IP number and an MTU number (1524), followed by periodic spurts of garbabe.
    Any help in getting to the next level would be greatly appreciated.
    Thank you,
    Tom

    Tom,
    You CANNOT dial-up to the ISP using the Internet Developers Toolkit. The toolkit assumes you already have a valid TCP/IP connection. However, many web browsers such as Netscape and Internet Explorer have auto-dialing options that will start dial-up networking automatically when you launch your browser. The only trouble is that the auto-dial wizards can require the user to push buttons, but there is a Shareware program called DUNCE which will take care of the button pushes for you in the auto-dial wizards so the user does not have to intervene in the dial-up process. You can recommend to the customer that the lauch their browser from LV and then have the browser configured for auto-dial and that should take care of the problem. I did not actually try this o
    ut myself, but in theory it should work.
    Zvezdana S.
    National Instruments

  • How to connect oracle database using DB connect in SAP BW

    hi all,
    I have been provided with following parameters
    Environment
    DB Server
       SID
    Port
    DEV
    xyz.hou.abc.no   U246M
    10006      ---> ABC
    I went in DBCO to create a new database connection
    DB Connection - ABC_NEW
    DBMS - ORA
    User Name - User Name
    DB password - DB password
    Conn. info - ????
    can anyone please guide what would be the connection info?  i have seen other posts mentioning TNS alias but not sure what that is?
    can anyone exactly guide on what would be the entry on the field connection info?
    thanks in advance

    Here is one way...
    http://jakarta.apache.org/commons/dbcp/

  • Application crashes with timesten database  over  OCI connection

    Application crashes with timesten database over OCI connection
    #0 0x405e09f8 in kpudsany () from /home/oracle/TimesTen/ratingtt1121/ttoracle_home/instantclient_11_1/libclntsh.so.10.1
    #1 0x405728d0 in OCIDescribeAny () from /home/oracle/TimesTen/ratingtt1121/ttoracle_home/instantclient_11_1/libclntsh.so.10.1
    #2 0x43748a5a in GDBociDriver::StoredProcArgumentList () from /home/omni/library/libgfr_dboci.so
    #3 0x4374e865 in GDBociDriver::StoredProcCallFormat () from /home/omni/library/libgfr_dboci.so
    #4 0x4376ec9a in GDBociDriver::ExecuteStmtBind () from /home/omni/library/libgfr_dboci.so
    #5 0x4376fc69 in GDBociDriver::Execute () from /home/omni/library/libgfr_dboci.so
    #6 0x436ba240 in GDBstatement::Execute () from /home/omni/library/libgfr_dblayer.so
    #7 0x43736106 in GDBociDriver::SetModule () from /home/omni/library/libgfr_dboci.so
    #8 0x4366cb22 in GDBconnectionPool::GetConnection () from /home/omni/library/libgfr_dblayer.so
    #9 0x4367a9db in GDBdriver::LoginConnectionGet () from /home/omni/library/libgfr_dblayer.so
    #10 0x4373dbaa in GDBociDriver::Login () from /home/omni/library/libgfr_dboci.so
    #11 0x4377380f in CreateOCIDriver () from /home/omni/library/libgfr_dboci.so
    #12 0x4367bb2a in GDBdriverLoader::CreateDriver () from /home/omni/library/libgfr_dblayer.so
    #13 0x436d423d in IGDBdriverMgr::GetDriverAndLogin () from /home/omni/library/libgfr_dblayer.so
    #14 0x436d4da1 in IGDBdriverMgr::GetDriver () from /home/omni/library/libgfr_dblayer.so
    #15 0x436a5071 in GDBserverDef::InitialLogin () from /home/omni/library/libgfr_dblayer.so
    #16 0x433247cc in CcapAdbAccess::Init (this=0x9e85a88) at CcapAdbAccess.C:161
    #17 0x43331c44 in CcapMain::Run (this=0x434eeb80, sdpId=2, processName=0x9dae29c "URE61_O2") at CcapMain.C:132
    #18 0x080947d1 in ccap_thread (arg=0x0) at main.C:1588
    #19 0x080e7bd2 in ThreadManager::WrapperRoutine (ipArg=0x9e84fc0) at ThreadManager.C:176
    #20 0x0035f44a in start_thread () from /lib/libpthread.so.0
    Timesten has some limitations and it says:
    Describing objects with OCIDescribeAny() is supported only by name. Describing PL/SQL objects is not supported.
    home/omni/library/libgfr_dblayer.so
    Cloud you please tell us whit might be the reason for this

    Are you able to provide exact details of the OCIDescribeAny call being made by the application (including parameter values)?
    Chris

Maybe you are looking for