DB password on scripted JDBC adapter

I am evaluating IDM 7.0 and tried to make a scripted JDBC Resource adapter
based on the simple table example. I succeeded in testing the DB connection
(Oracle 10.1 on Linux), but when I try to add the resource to an account, I get
[codeThere was an error while attempting to check the dictionary for the new password. Failure : com.waveset.util.WavesetException: XPRESS <invoke> exception&#xA;==> com.waveset.util.WavesetException: Can't call method queryString on class com.waveset.util.JdbcUtil&#xA;==> com.waveset.util.WavesetException: &#xA;==> java.sql.SQLException: ORA-01017: invalid username/password; logon denied&#xA;]
which implies that the db user name (or password) is not right. But it should
be, since the connection test succeeded ?!

Yes, you are right, there was problems with dictionary password. I had
set the password dictionary , since it was dropped for some reason.
Now the resource works; well actually not. I get error
Account 'base' not found in Resource 'Oracle JDBC'.
But, I am trying to add the resource to existing account. The Linux resource
creates the account if it does not exist, so how can I do this on scripted JDBC?
BTW where is the password dictionary documented? I had to trace
Oracle to see what name the table is and then guess the attribute name
and type. I found a file dictionary.txt which describes the DDL, but not for
what it is (i.e. password list is not mentioned).

Similar Messages

  • Scripted JDBC Adapter For Non Standard Database Types

    I am looking to connect through JDBC to a UNIDATA database. I have place the jdbc driver in the WEB-INF/lib directory and rebooted the application server. When I try to create the resource and test the connection with the proper information (user, password, url, host, port, etc), I get a null pointer. I'm assuming the Database Type is causing an issue. Is there a way to get around this?

    I am able to do the recon now. I had to upload the getUser script also. Once i did that I was able to get users linked into IDM properly.

  • Scripted JDBC and Oracle Stored Procedure with in/out Array

    The com.waveset.util.pooledconnection used by Scripted JDBC Adapter extends java.sql.connection.
    I need to pass an Varchar2 Array to the Stored Procedure. I tried using the oracle.sql.ARRAY and oracle.sql.ArrayDescriptor to pass the values, but get a casting exception,as the polledconnection implements only the java.sql.connection and not oracle.sql.connection.
    What are my options of using java.sql.Array with a PL/SQL procedure that takes a varchar2 array as in out parameter?
    Thanks
    Venki

    i ran my procedure which is very similar syndra posted
    create or replace procedure foo(p_dt in date, cv out sys_refcursor) as
    begin
    open cv for
    select e.*
    from table_xyz e
    where start_dt = p_dt;
    end;
    /Here is how is executed
    DECLARE
      P_DT DATE;
      CV SYS_REFCURSOR;
    BEGIN
      P_DT := '10-oct-2005';
      -- CV := NULL;  Modify the code to initialize this parameter
      scott.foo ( P_DT, CV );
      COMMIT;
    END;           
    -- i get PL/SQL procedure successfully complted , But i dont see the result set Or output
    - How do i see the output when i m using refcursor ?? i tried using print , but nothing didnt work
    - Any idea ??
    Thank you!!
    Edited by: user642297 on Jun 24, 2010 1:35 PM

  • Scripted Host Adapter - Workflow

    I was wondering if anyone knew the best way to get the Scripted Host Resource Adapter that I created in the admin console and then call the scripts that were assigned to this Scripted Host Adapter from a workflow. I am just trying to do some initial Proof of Concept work so I can understand how to do this for an upcoming project. I am a little lost on how this works. I have used LDAP adapters before in workflows but it seems this is different with having scripts attached.

    Hi,
    creating users in mysql-db is pretty easy. just use the scripted jdbc-adapter;
    see documentation Identity Manager Resource Reference and look at sample code in .../idm/sample/ScriptedJdbc - pretty easy, script language is java script or beanshell (in IDM 8.x).
    you define a scripted jdbc resource - and add resource actions for create, update, delete.
    when you assign this resource to a user in admin ui than the create user resource action will be called.
    yours,
    mst1234

  • Scripted JDBC: no password visible

    Hi;
    I have a basic scripted JDBC connector working to an Oracle database, but no password is coming across when I create users. Sending the password is the primary reason for implementing this adapter. Can anyone shed any light on this? I have specified password as a field in the resource schema.
    thanks!
    -Bill

    I have fixed this, but I'm not too sure what was broken.
    I took the above advice and renamed my fields in my resource. At first, that didn't seem to fix it. Then, I implemented an "update" beanshell and the create started working properly. Go figure...
    I'll leave this as "unanswered" for a bit in case somebody can shed some light on this.
    -Bill

  • 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..

  • Can a Stored Procedure be called from a Rule (not using Scripted JDBC Adap)

    Hello smart people,
    Question: Can a stored procedure be called from a Rule without using the Scripted JDBC Resource Adapter?
    What's Desired: The project has very strong sql developers and average at best Java developers. We have been successful at implementing the scripted JDBC Resource Adapter which makes use of Java Bean shells. The custom Java Bean shell contains code that calls a stored procedure. We are cool with that process.
    However we would like to be able to set up a Rule that calls a Stored Procedure without jumping thru the Java Bean Shell layer. The Stored Procedures we will be developing will not access the tables in the Waveset database. Instead the Stored Procedures will be accessing custom tables in a custom database. The custom DBase will be housed on the same dBase server as the Waveset database.
    Environment: Identity Manager 7.1. Oracle 10i, and Unix OS.
    It seems to me that this task is possible, but the posts in this forum make it sound like perhaps it is not.
    Do any of you smart people agree that it should be possible or better yet has anyone implemented such an approach?
    Thanks.

    We did this by putting all of the JDBC calls into a Java class, then instantiated that class and called the methods from within a rule. An example of a rule we used is this:
    <Rule authType='UserMembersRule' name='List UserType'>
      <block>
        <defvar name='adapter'>
          <new class='com.waveset.adapter.ScriptedJdbcResourceAdapter'/>
        </defvar>
        <invoke name='setResource'>
          <ref>adapter</ref>
          <invoke name='getObject' class='com.waveset.ui.FormUtil'>
            <ref>context</ref>
            <s>Resource</s>
            <s>Banner</s>
          </invoke>
        </invoke>
        <defvar name='jdbcHelper'>
          <new class='edu.bates.JDBCHelper'>
            <invoke name='getConnection'>
              <ref>adapter</ref>
            </invoke>
          </new>
        </defvar>
        <defvar name='userList'>
          <new class='java.util.ArrayList'/>
        </defvar>
        <invoke name='addQueryToList'>
          <ref>jdbcHelper</ref>
          <s>SQL QUERY HERE</s>
          <ref>userList</ref>
        </invoke>
        <ref>userList</ref>
      </block>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
    </Rule>

  • JDBC adapter can't find the jdbc driver class

    Hello, my jdbc driver give an very strange error
    11:46:13 (4207): JDBC adapter terminated
    Mon Aug 02 11:46:13 CEST 2004 *****
    11:46:13 (4210): ERROR: Attempt to load JDBC driver failed ("java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver")
    Attempt to intialize JDBC adapter failed
    11:46:13 (4203): Unable to start JDBC adapter (not initialized)
    I know that the jdbc driver is in the classpath, and to confirm that I have created a java program in the IB (repository) which import the class oracle.jdbc.driver.OracleDriver. I can compile and run that program without problems.
    Here you can see my jdbc adapter configuration file:
    jdbc adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleDB2XMB
    mode=DB2XMB
    Integration Engine address and document settings (example, see docu)
    XMB.TargetURL=http://<host>:<port>/sap/xi/engine?type=entry
    XMB.SenderBusinessSystem=ExtAdapterSender
    XMB.SenderInterfaceNamespace=http://sap.com/xi/xidemo
    XMB.SenderInterfaceName=ExtAdapterSenderIF
    XMB.QualityOfService=EO
    ##DB Adapter specific parameters (example for SQL-Server, see docu)
    db.jdbcDriver=oracle.jdbc.driver.OracleDriver
    db.connectionURL=jdbc:oracle:<user>:<password>/hello@<url>:<port>:<instance>
    db.processDBSQLStatement=Select * emp
    db.pollInterval=600
    xml.recordsetsPerMessage=1

    Hi Ernesto,
    Can you try to the following:
    1. Remove your JDBC driver entries from the CLASSPATH.
    2. Put those jars into your jre/lib/ext directory.
    3. Restart the whole adapter engine, and
    4. Config the driver java class for the adapter. the class name to be used can be found in your JDBC driver document.
    Let me know whether it works.
    Hart

  • Error in XI Sender JDBC adapter for AS/400 DB2

    We are trying to connect to AS/400 DB2 from XI's Sender JDBC Adapter. we got the driver from DataDirect (connectjdbc.jar) and configured it within XI .The configuration according to the manual for this jar file is
    // Register the driver with the driver manager
    Class.forName("com.ddtek.jdbc.db2.DB2Driver");
    // Establish the Connection
    String url = "jdbc:datadirect:db2://corpserver1:50000;LocationName=ACCTNG";
    Connection con = DriverManager.getConnection(url, "test04", "test04");
    In XI we configured this as:
    Driver = com.ddtek.jdbc.db2.DB2Driver
    Connection = jdbc:datadirect:db2://servername;LocationName=NBHAGWAT
    and specified the user id and password
    <b>Note</b>: The Port Number is optional
    When this was done in XI, we got the below error in the Adapter Monitoring:
    Sender Adapter v2108 for Party '', Service 'JDBCtoFile':
    Configured at 2006-12-19 15:45:31 MST
    History:
    - 2006-12-19 15:45:31 MST: Retry interval started. Length: 10.000 s
    - 2006-12-19 15:45:31 MST: Error: Accessing database connection 'jdbc:datadirect:db2://AS400a;LocationName=NBHAGWAT' failed: DriverManagerException: Cannot establish connection to URL 'jdbc:datadirect:db2://AS400a;LocationName=NBHAGWAT': SAPClassNotFoundException: com.ddtek.jdbc.db2.DB2Driver
    - 2006-12-19 15:45:31 MST: Processing started
    Is this because there is something wrong because the way the connection string is specified.
    Anybody who has configured XI Sender JDBC adapter for AS/400 DB2, please send us some information on this.
    Thank you,
    Regards,
    Balaji

    > SAPClassNotFoundException:
    > com.ddtek.jdbc.db2.DB2Driver
    It looks like your JDBC driver is not found. Have you deployed the driver to XI?
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10</a>

  • JDBC Adapter configuration not initialized

    Hi,
        I have tested one scenario for WebService to JDBC. Integration engine shows success message.But i got some error in Adapter engine. It shows "JDBC Adapter configuration not initialized".
    So, plz anyone give the solution for this problem.
    Regards
    Vijay

    Hi,
    1.Check whether the JDBCAdapter is Activated.
    2.Check if any firewalls are there frm client side and open
    3.Check the password used to connect the Database is correct one.
    If all these are fine..do the complete cache refresh once.
    Please award marks if found useful.
    Thanks
    Hamja

  • Windows Authentication in Sender Jdbc Adapter

    Hi,
    We have a sender jdbc scenario where there is no user id/passowrd maintained for the database. ONly the windows user id/password is used.
    Is it possible to connect to such a database through JDBC adapter. If so, please tell how to do that?

    Hi Aarthi,
    As per my knowledge there is not posssible to do that.
    Assumption :
    Database : MSSQL Database
    Authentication : Window only
    Solution :
    You need to change authentication type become mixed.
    There is some workaround for .NET webservices using windows domain authentication but not for JDBC.
    Regards
    Fernand

  • Using Stored procedure in sender or receiver jdbc adapter

    Hi All,
    Please let me know simple blogs for Stored procedure used in sender or receiver jdbc adapter to get data from 2-3 tables
    Thanks

    Hi
    To work with Store proceudres (SP) you have to create the SP's in database like Oracle, Mssql or Msaccess.
    Ususally the SP creations are done by database experts. For more info about "SP" try Googling!
    The below blog is about SP but not the one you expect!
    /people/itisha.alok/blog/2009/03/23/jdbc-stored-procedure-returning-multiple-resultsets
    Executing an Oracle Stored Procedure from Sender JDBC adapter
    Sender Adapter - -
    SP will contain the select Query alone or with it will contain insert, delete statement too.
    Receiver:
    SP will have insert or delete satement.
    Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
    The below details are required  to configure the adapters
    Driver details
    database name
    Procedure name
    user name
    password,
    Regards
    Ramg

  • File adapter/JDBC adapter processing

    Hi,
    I have scenarion as below
    > XI gets an IDOC message from R/3
    > Based on that message XI uses a fileadapter to call a UNIX shell script in the other system (system B - non SAP)for pre-processing.
    > The script call returns no errors.. So, XI/BPM now uses the JDBC adapter to convert the IDOC into a JDBC insert.
    > On successful inserts, the process again uses a file adapter to perform a post-processing script call
    Is the above scnarion possible using JDBC/File adapters in XI/BPM ?
    Thanks
    mad

    Hi Maddux,
    Is it a pre-codintion to execute the unix shell script before inserting the data using JDBC adapter?
    FYI, If there is no pre-condition and you want to send the data to two different systems, you can configure multiple receivers(both file and JDBC) in your Receiver Determination object without BPM.
    -Sam Raju

  • XI JDBC Adapter

    Hi Experts,
    I am coming from background of production support of the current XI environment. Do anyone of you have a good site on step-by-step guide to create an interface in JDBC adapter?
    Currently I have an interface whereby SAP will do direct update to a third-party Database. I can only get the login information like IP address, Login ID and Password in the Communication Channel of the interface, but I cannot find the 'Table name' and also the SQL statement to do the insertion of data to the third-party Database.
    Any enlightenment?
    thanks.
    Cheers,
    Isaac.

    Hi,
    Here is one good example of File to JDBC:
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 -
    About JDBC Drivers:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f
    Regards,
    Sarvesh

  • Info reg reciever JDBC adapter's driver and connection

    Hello,
    I have following questions related to JDBC receiver adapter.
    1. can I supply jdbc driver and jdbc connection dynamically to supply the DB parameters dynamically?
    2. if I cant supply dynamically, how do i achieve this purpose?
    3. What are the receiver adapter parameters of JDBC receiver adapter that i can change dynamically?
    thanks and regards,
    Nikhil.

    Hi,
    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
    Please check the driver path as mentioned below.
    JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
    Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
    No JDBC driver required.
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    follow this thread
    Re: Problem when connecting to MS Access through JDBC Adapter.
    SAP Note 850116 has details
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

Maybe you are looking for