Informix queries via ODBC

Hello,
     A while ago I set upon configuring a Debian server to use ODBC and PDO to query our CUCCX server for use as a basic wallboard.  I got it working and would now like to extend this our CUCM publisher.  For CUCCX, the DB Schema document was very valuable because it gave information on the database name as well as a pretty thorough description of the tables.  I'm looking for the same information for CUCM.  I've read some of the CUCM Data Dictionary, but I still have questions on how to find the relevant information for the DSN.
    So, for the CUCCX Wallboard project, one roadblock was in adding the Informix servername to the DSN.  There are certain rules, such as hyphens are turned into underscores, etc.  For CUCM, I cut to the chase and pulled a db replication trace to look at what Informix server names were being used, but I would like a verification to make sure I am on the right track.  Server names seem to prepended with a "g" and the version number of the server seems to be appended as well, so;
Servername:
abc-011-c78-vs01
Informix server name:
g_abc_011_c78_vs01_ccm8_6_1_20000_1
Does this look correct?
Also, for UCCX, there is a default ucchruser account that is used for the purpose of DB queries.  What kind of account should I create to do this?  What kind of rights role should it have?
What is the database name on CUCM that I can add to the DSN?  Is there a document like the UCCX DB Schema doc that I can use?  Any help is very much appreciated.

Hi William,
     I spent more time on your site and I must confess it's very cool.  Lots of really good information on there.  So, update to my query situation;  I've figured out the SQL string I should run to get the information I'm looking for;
run sql car select datetimeOrigination, dateTimeConnect, dateTimeDisconnect, callingPartyNumber, finalCalledPartyNumber from tbl_billing_data where finalCalledPartyNumber like 'XXXXX' or callingpartynumber like 'XXXXX' order by datetimeOrigination
I understand that this statement will proabably not do me much good in rendering the information to a web page, but it's a start.  I also found some PHP code that will use AXL, a gentleman had posted it here;
http://ict-all.blogspot.com/2011/04/accessing-ccm-soapaxl-interface.html
But the link he's using in this example is https:///realtimeservice/services/RisPort?wsdl, which I do not believe will work for CDR queries.  My understanding is that I need to use
https://
I'm not sure what the port 8443 reference is for since it seems to work without it.
So, my guess is that I should be using the second link for CDR queries. 
Does the account used in the AXL query only need the Standard AXL API Access role?  I seem to be pulling information when my account is using Super User, but not when using an account that only has the Standard AXL API Access role (not sure if I need to add another role to the group).  Beyond that, do you have a tutorial on how to put together a SOAP query for this kind of situation? 

Similar Messages

  • Using SQL queries via ODBC connection to obtain data for a report

    Post Author: adhiann
    CA Forum: General
    Hi All,
    I was trying to run a Crystal Reports report through Clearquest using an SQL query I designed in CQ to give me the data I need, however, from within ClearQuest, I cannot associate an SQL query on a report, so I went directly to Crystal Reports and am using the ODBC connection to the ClearQuest database to run the report. I selected the right tables and fields and am using the same formula that I used on ClearQuest's SQL query to get the data, however, the report doesn't return any data whereas I am getting at least 5 records from Clearquest for the same query.
    Granted there's a difference in the way you create a SQL formula in Crystal, but I don't know if I'm doing it right as I've never had to use CR as a standalone product.
    Is there a way I can directly plug my ClearQuest's SQL query into the CR and run it? I don't know why the results won't return any data for a query that has some results
    Thanks in advance
    nandita

    Post Author: Roscoe1822
    CA Forum: General
    Did you try to add a command through the Database Expert? Also creating a Business View that contains your sql query might help as well.

  • URGENT - Unable to link to VFP 9 tables in Access and Excel 2007 in Windows 7 32-bit via ODBC

    I have 3 VFP 9 databases and am able to connect via ODBC to 2 of the 3 in Access '07.  I can open all 3 the dbf's via FoxPro just fine and 2 months ago I could link to all 3 databases via ODBC with no troubles. I know the problem child (specifically
    Accpac/Sage acctg) is intact. Since I had to reformat my computer, I've been able to relink to everything except this one database. Any suggestions as to why I can't make the link work?
    As this is our previous system that is no longer used, I really need to get this link set up for queries and reports in Access.
    Thanks,
    Kristi
    Thanks!

    This does not appear to be related to sql server, so posting to an access forum would likely be more effective.

  • Connection to MySQL via ODBC not working

    Hello all together,
    I've got a problem with the ODBC connection to MySQL. The connection via ODBC is established and things like tnsping are working.
    When I select some data within the SQL*Plus environment, I get no real result. For example "select table_name from all_tables@mysql;" returns nothing.
    My entry in listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=odbc_mysql)
    (ORACLE_HOME=D:\oracle\product\11.0.1\db_1)
    (PROGRAM=dg4odbc)
    My entry in tnsnames.ora:
    MYSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA = (SID=odbc_mysql))
    (HS=OK)
    The initodbc_mysql.ora in ORACLE_HOME/hs/admin/:
    HS_FDS_CONNECT_INFO = odbc_mysql
    HS_AUTOREGISTER = TRUE
    HS_DB_NAME = hsodbc
    I tried some modifications but I still get no data from mysql database. When I try "select * from customer@mysql;" I get the correct number of records, the correct column names, but the content is always "¬¬¬¬". The odbc driver works, because with MS Access I can fetch the data. I'm using Oracle 11g Release 1 EE and MySQL ODBC 5.1.5.
    What could be the reason for this?
    Greetings,
    Joerg

    created in my UTF-8 Mysql DB your table and inserted a record; the select shows:
    SQL> select * from "movieclass"@mysql;
    idClass
    ClassName
    123
    H e l l o
    As you can see the content is there, the "space" between the letters is related to unicode. Each character is interpreted by 2 bytes and SQL*Plus wrongly displays both. Using iSQLPLus or SQLDeveloper does not show the "space" between the letters.
    Here the data type mapping:
    SQL> desc "movieclass"@mysql;
    Name Null? Type
    idClass NUMBER(3)
    ClassName NOT NULL NVARCHAR2(50)
    What's the exact version of DG4ODBC you're using? 11.1.0.7?
    According to the listener file you're using DG4ODBC on Windows. There was a high/low byte issue in DG4ODBC for Windows. This issue is fixed in 11.1.0.7 and a certain patch. So I recommend you to get first the 11.1.0.7 patchset (if you don't already have it installed):
    6890831 Oracle Database Family: Patchset
    11.1.0.7.0 PATCH SET FOR ORACLE DATABASE SERVER 11.1.0.7.0
    and then please apply also the latest patch:
    8689191 Oracle Database Family: Patch
    ORACLE 11G 11.1.0.7 PATCH 16 BUG FOR WINDOWS 32 BIT 11.1.0.7.0
    There was a high/low byte issue
    Edited by: kgronau on Aug 11, 2009 10:28 AM

  • Can SQL*Plus connect via ODBC to NON-Oracle data source?????

    I am struggling to understand something. I downloaded Oracle instance client, SQL*Plus and ODBC components with the hopes of being able to connect via SQL*Plus to a non-Oracle/ODBC compliant database.
    Is this possible? Or is SQL*Plus ability to connect via ODBC only to an Oracle data source??
    Thanks...

    sqlplus only connects to oracle. you can use the odbc driver from instant client to allow other applications to access oracle via odbc (e.g. excel). if you need to connect to non-oracle odbc database (ms-access, foxpro, etc.) you need odbc driver for those sources.
    you can use sqldeveloper to connect to oracle and non-oracle databases. check otn product info for sqldeveloper for more details.

  • Error when connecting to SQL*PLUS via ODBC to Excel

    OS: Windows 2000 Professional
    Oracle DB: 9i release 2
    SQL*Plus: Release 9.2.0.1.0
    MS Excel: 2000
    ===================
    When I try to connect to SQL*PLUS via ODBC to Excel with "connect scott/tiger@odbc:libro" I get the following error:
    ORA-03121: no interface driver connected - function not performed

    SQL Server objects are commonly case sensitive, so please surround the column and table names by double quotes:
    SELECT "Type_PK_ID" FROM "dbo"."boundaries"@sqlserver
    SIDE NOTE: Oracle is by default not case sensitive and all object names are stored in upper case. To get case sensitive objects they need to be surrounded by double quotes. In HSODBC case sensitive table names were commonly found even when not surrounded by double quotes as the gateway used internal SQL Server methods to find the correct table nameing - this method does not work for column names. So to be able to query a case sensitive column it needs to be surrounded by double quotes and the table name must be written as stored in the source database.

  • Problem remote connection to SQL via ODBC

    Hello, I have a server machine on which I installed the "SQL Server 2008 R2 Express." On the same machine I have configured a connection to the SQL server via ODBC and I developed a VI that uses the "LABSQL ADO function" and it perfectly communicates via ODBC with the database.
    The problem is when I try to connect to the database from a remote PC. Even on the remote PC I configured the connection via ODBC. I launch the same VI I described above, it performs correctly the ADO Connection Open the ADO connection, but the SQL Execute returned an unknown error: -2147217865. It seems that it can not find the table on which I am doing the query.
    Does anyone have any idea? I have no experience with databases and do not know what tests to do.
    Thanks a lot.

    Hi,
    actually the Microsoft error code seems to be related to not-existing table (see here).
    Anyway, this error code may result when trying to use tables with spaces or other special characters ("-", "/", "\", "?" ) in their names.
    Is this true also in the database you are using?
    Could it be an issue with permission levels?
    I hope it helps!
    Bye,
    Licia

  • MARS connection to SQL Server in JAVA via ODBC

    Hello.
    I've got this problem.
    I'm managing an application JAVA/JSP, based on a 3-tier architecture.
    The connection to the database is performed via JDBC/ODBC, in order to work with different DRMS.
    Everything is ok when connecting to Oracle or MySql via JDBC, but when we connect to SQL Server via ODBC we get this error: "ODBC SQL SERVER - Connection is busy with result for another stmt".
    That's why the application executes more than one SQL statement, opening a ResultSet object, under the same connection.
    This is the way the application is performing, and we can't change it.
    I've read that on SQL Server 2005 is available a new connection parameter called MARS (Multiple Active Result Sets), that should resolve this problem.
    But I was not able to find any way to invoke this type of connection in JAVA for an ODBC connection! (I've found only tips for .NET...).
    Many thanks if somebody can suggest me how to resolve this problem.
    It's urgent!

    Use JDBC. Get a SQL server JDBC driver. Unfortunately I don't know of any free ones, but one I have used in the past is from http://www.jnetdirect.com/
    Maybe you can search in the JDBC forum for the answer - Its a common enough question I know.

  • Call stored procedure(with parameters) via odbc

    In my application I like to use the below statement to call a stored procedure with parameter and return a result set.
    {CALL PP.getPerson('daniel')}
    but this will just return errors to my application.
    If I change the statement to:
    {CALL PP.getPerson(?')}
    and bind a parameter and its value, it will work.
    My question is, is it possible to call a stored procedure via ODBC without binding parameters in application? I mean, what will be my SQL equivalent if I don't want to do parameter binding in my application?
    Thanks in advance. I appreciate any help :-)

    hi 
    Please see the e.g bellow
    create proc proc_test(@SchoolNumber int,@SchoolName
    varchar(100),@StudentNumber int, @StudnentName
    varchar(100)output ,
    @StudentAddress varchar(100) output,
    @Studentbirthdate datetime output,
    @StudentPhoneNumber varchar(100) output,
    @GuardianName varchar(100) output)
    as
    begin
    select @StudnentName varchar=StudnentName ,
    @StudentAddress =StudentAddress,
    @Studentbirthdate =Studentbirthdate ,
    @StudentPhoneNumber =StudentPhoneNumber,
    @GuardianName =GuardianName
    from table where schoolno=@SchoolNumber
    and SchoolName=@SchoolName
    and StudentNumber=@StudentNumber
    return
    end
    http://technet.microsoft.com/en-us/library/ms187004(v=sql.105).aspx
    http://www.lynda.com/SQL-Server-tutorials/Using-input-output-parameters/104964/113058-4.html
    Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker

  • Poor performance of BLOB queries using ODBC

    I'm getting very poor performance when querying a BLOB column using ODBC. I'm using an Oracle 10g database and the Oracle 10g ODBC driver on Windows XP.
    I create two tables:
    create table t1 ( x int primary key, y raw(2000) );
    create table t2 ( x int primary key, y blob );
    Then I load both tables with the same data. Then I run the following queries using ODBC:
    SELECT x, y FROM t1;
    SELECT x, y FROM t2;
    I find that the BLOB query takes about 10 times longer than the RAW query to execute.
    However, if I execute the same queries in SQL*Plus, the BLOB query is roughly as fast as the RAW query. So the problem seems to be ODBC-related.
    Has anyone else come across this problem ?
    Thanks.

    Hi Biren,
    By GUID, are you referring to the Oracle Portal product?

  • ODI reading Excel via ODBC on Linux

    I've got ODI loading data from Excel via ODBC with everything running on Windows, and it runs fine!
    But will this work when I run ODI on a Linux platform? Will I have to buy some kind of ODBC driver for Excel under Linux? Has anyone done this before?
    Any help gratefully received!
    Thanks
    A

    There exists a native JDBC driver for excel, it is a sourcefourge project. This allows you to read excel data irrespective of platform through JDBC rather than having to use the JDBC/ODBC bridge.

  • Trouble in extracting Via ODBC to Oracle or Access - Numbers Change

    I am running a report that I only want the group records printed. One of the group fields  shows a sum of a function from the detail records.
    The following function sj_rec is on the detail record
    WhilePrintingRecords;
    Numbervar clm_sj_amt;
    if {SJE_RECORD.SJER_TYPE} in ["S","J"] then
        clm_sj_amt := clm_sj_amt + {SJE_RECORD.SJER_AMOUNT};
    if {SJE_RECORD.SJER_TYPE} = "R" then
        clm_sj_amt := clm_sj_amt - {SJE_RECORD.SJER_AMOUNT};
    clm_sj_amt;
    Then on the Group Record we have disp_sj function
    WhilePrintingRecords;
    numberVar   clm_sj_amt;
    clm_sj_amt;
    On the crystal report  every thing looks fine.
    When I extract the  Information Via ODBC to Oracle or Access the numbers change. If I extract to Excel it is fine.
    Can you please explain why I canu2019t get on oracle the exact info displayd in crystal ???

    Please re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum
    Likely differences in how ODBC links and indexes the tables.

  • Oracle Cloud connections by other databases via ODBC/JDBC/XML

    If we move to the Oracle Cloud, will these tables be available from other SQL clients via ODBC/JDBC/XML? It obviously works fine with an internally hosted Oracle solution, but I didn't know if moving the Oracle Cloud would remove these features. Thanks.

    You need a service to auto start/stop instances. Pls See
    Re: Oracle instance is going to idle when i restart/start the machineRgds,
    Ahmer

  • How query data in pl/sql via ODBC from DB2 on AS400

    Hi,
    What's the most easy way to do some selects on tables in an external (non-oracle)database via odbc?
    I only need selects, no dml-statements like inserts en updates...
    Where can I find more information about this subject?
    Filip

    You need to use Oracle Heterogeneous Services. Firstly you have to obtain and configure DB2 ODBC drivers. I got mine from ibm.com (not free) but I am sure there are some third party vendors out there. I don't know much about DB2 so I can't help you with the configuration (I asked a DB2 DBA to help me with that part).
    The rest is just setting up Oracle HS and creating the DB link. The following steps should help but there are much more detailed manuals for Oracle HS on http://tahiti.oracle.com.
    Listener Configuration
    Add the following entry into the SID_LIST part of the listener. The SID_NAME will be used in the heterogeneous services configuration
    (SID_DESC=
    (SID_NAME=db2)
    (ORACLE_HOME=D:\oracle\ora92)
    (PROGRAM=hsodbc)
    Restart the listener.
    Heterogeneous Service Configuration
    Under ORACLE_HOME\HS\admin create the following text file called initDB2.ora (the DB2 part should match the SID_NAME used in the listener configuration).
    Put the following line in the text file (the DQ01 is the name of the DB2 ODBC System DSN):
    HS_FDS_CONNECT_INFO=DQ01
    Client Configuration
    The client side refers to an Oracle database that will use the heterogeneous gateway.
    TNSNames Entry
    Put the following entry in the tnsnames.ora file (the SID part should match the SID_NAME in the listener configuration):
    DB2.telkom.co.za =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=cntrra20-esdt00)(PORT=1521))
    (CONNECT_DATA=(SID=db2))
    (HS=OK)
    Database Link
    Create a database link that references the new tnsnames.ora entry:
    create public database link db2
    connect to oratst identified by oracle using 'db2';
    Test the database link.

  • Another user-modified table 'Queries' (OUQR) (ODBC -2039) [Message 131-183]

    Hi, Experts.
    I updated B1 2007B PL18 from PL13.
    I have following error message when modified query in query manager.
    "Another user-modified table 'Queries' (OUQR) (ODBC -2039) [Message 131-183]"
    However, I can modify same query in PL13.
    Please, share the information.

    Hi,
    If you can make sure nobody else modifying the query, it is probably a bug.  Log a message to support immediately.
    Thanks,
    Gordon

Maybe you are looking for

  • ITunes losing all music and won't redirect to correct folder

    Hi there, This morning, iTunes has lost all my music. The whole library has the little exclamation mark. Using the 'Find info' comand, I can see that iTunes is looking for them in the music folder of my internal drive. However, they've always been ke

  • My ipad is not recognized by Itunes. Only if I remove Itunes can I see my pictures.

    Without Itunes installed, I can see my photos in the Camera Roll and transfer them to my computer. With Itunes installed, the USB is not recognized by Windows. I use a 64-bit machine and Windows 7. Is that normal?

  • Going to buy a new MBP 17, but questions first

    Hi all, looking to buy a custom build new Feb'11 refresh MBP 17 as soon as possible, but have a number of questions. (As background, Im a freelance IT software developer and professional music producer/DJ/performer - need the laptop to support both a

  • Command V not working.

    Hi Guys, I've had a new 24" iMac for just over a week now and for the last 2 days Command V has stopped working. I have the wired aluminum keyboard with number pad. Now the weird thing is it only seems to be the left Command key that doesn't work, as

  • TV@nywhere and closed captioning?

    Is it possible to get closed captioning through S-video? It's been a while since i used this tuner. I used it for a while till i installed an ATI all-in-wonder.  Now i am back with a different video card and back to the TV@nywhere. I remember being a