Format of the connection string to connect to Oracle DB via LDAP
HelloI have an Oracle database and its details are configured in LDAP. I have the c# code that I want to connect to Oracle DB using LDAP details. So I wrote the code to connect to the Oracle DB, but not able to connect. Implementation error at the con. Open() statement: "ORA-12154: TNS: could not resolve the connect identifier specified.
Code:
--------
String s = "Data Source = @ldap://abc.pq.xyz.com: 11389/myldap, cn = OracleContext, dc = pq, dc = xyz, dc = com; User Id = MyDB; Password = MyPass";
Con OracleConnection = new OracleConnection (constr.);
con. Open();
I need help in the formation of the connection string.
user8786648 wrote:
HelloI have an Oracle database and its details are configured in LDAP. I have the c# code that I want to connect to Oracle DB using LDAP details. So I wrote the code to connect to the Oracle DB, but not able to connect. Implementation error at the con. Open() statement: "ORA-12154: TNS: could not resolve the connect identifier specified.
Code:
--------
String s = "Data Source = @ldap://xyz.us.oracle.com: 11389/xyz_ldap, cn = OracleContext, dc =, dc = oracle, dc = com; User Id = xyz; Password = xyz";Con OracleConnection = new OracleConnection (constr.);
con. Open();I need help in the formation of the connection string.
This isn't how you use LDAP for Oracle name resolution.
You must configure the LDAP protocol. ORA and SQLNET. ORA files properly.
For example, you can review the LDAP protocol. Documentation of ORA here:
http://docs.Oracle.com/CD/E11882_01/network.112/e10835/LDAP.htm#i500397
And the SQLNET. Documentation of ORA here:
http://docs.Oracle.com/CD/E11882_01/network.112/e10835/SQLNET.htm#i500318
A quick search on the terms "example of oracle ldap.ora", shot to the top of several examples.
Also, if these are real values that you posted in your example of a connection string, you can change.
Tags: Database
Similar Questions
-
Unable to make the connection with oracle (database sqlserver) non-oracle
We are unable to connect with the database of sql server after you have created the dblink to the oracle server.
tnsping everything works very well between the oracle and SQL Server for database, database
Please provide us with the solution for this problem.
The problem is that the HS_FDS_CONNECT_INFO in the
init .ora bridge was not properly configured. Using the format-
HS_FDS_CONNECT_INFO =
/ /. has permits the connection works.
-
Open and close the connection in oracle procedure
Here is the procedure I'm in I insert data into the table temp_soap_monitoring using the select statement. I have soap_monitoring table
FONIC_RETAIL
database where I want to take the data and insert into the table temp_soap_monitoring. I play the position of planner of all 5 minutes for this procedure so that I get always the latest data in soap_monitoring@fonic_retail table. The problem of this procedure is that it takes too much cost and the query execution time to perform this procedure. Whenever he tries to extract the data from db link and save my local database. I remember in Java, php, and other programming languages, we have method in order to open the db connection when we tried to extract data from db link and then once integration is complete, we can close the db connection. So the performance improves and also has no load on db link. In this method, we have to assign link db to retrieve the data. So I think is it possible to apply this logic in my oracle procedure. The question arises because at this moment I am hard code the link db, but now I have 3 db more links and I will not reproduce the same procedure by assigning diffferent db links.PROCEDURE "EXT_SOAP_MONITORING" AS
LAST_SM_ID Number := 0;
LAST_CAPT_DATE DATE;
BEGIN
SELECT LAST_TASK_ID INTO LAST_SM_ID FROM CAPTURING where DB_TABLE='TEMP_SOAP_MONITORING';
insert into TEMP_SOAP_MONITORING(ID,REQUEST_XML,RESPONSE_XML,WEB_SERVICE_NAME,WEB_METHOD_NAME,CREATE_DATE,ERROR_CODE,ERROR_MESSAGE)
select ID,REQUEST_XML,RESPONSE_XML,WEB_SERVICE_NAME,WEB_METHOD_NAME,CREATE_DATE,ERROR_CODE,ERROR_MESSAGE from
SOAP_MONITORING@FONIC_RETAIL WHERE WEB_SERVICE_NAME ='RatorWebShopService' and WEB_METHOD_NAME = 'placeShopOrder' and ID > LAST_SM_ID order by ID desc;
update
CAPTURING set LAST_TASK_ID=
CASE WHEN ((SELECT MAX(ID) from TEMP_SOAP_MONITORING) IS NULL) AND (LAST_TASK_ID IS NULL) THEN (SELECT MAX(ID) from SOAP_MONITORING@FONIC_RETAIL)
WHEN (SELECT MAX(ID) from TEMP_SOAP_MONITORING) IS NULL THEN LAST_TASK_ID + 1
ELSE (SELECT MAX(ID) from TEMP_SOAP_MONITORING) END,
CAPTURING_DATE = CURRENT_TIMESTAMP, LAST_CAPTURED_DATE = LAST_CAPT_DATE where DB_TABLE='TEMP_SOAP_MONITORING';
END EXT_SOAP_MONITORING;I have it here is the procedure which I insert data in
temp_soap_monitoring table by using the select statement. I have
soap_monitoring table of
FONIC_RETAIL
database where I want to take the data and insert into the table temp_soap_monitoring.WHY? Why you are moving the data? Why not just use it table, is it already?
The problem of this procedure is that it takes too much cost and the query execution time to perform this procedure.
The solution is to FIND THE PROBLEM. Troubleshoot the code and find out where is the problem, if any.
Based SOLELY on what you have posted the solution might be to add just an appropriate index.
Whenever he tries to extract the data from db link and save my local
database. I remember in Java, php, and other programming languages, we
method to open the db connection when we tried to extract data of
DB link and then once integration is complete, we can close the db
connection. So the performance improves and also has no load on db link.
What? The LAST thing you want to do is keep the closing and opening of the connections. I don't know how 'remember you' from Java or other languages. The main reasons pools of connections were invented to AVOID have to repeatedly open and close connections.
A db link not a NOT a "charge" - the "charge" is the query is made. If you write a poor query or have a poor data without the necessary index model, or have missing statistics, then you will get poor results.
In this method, we have to assign link db to retrieve the data. So I have
is it possible to apply this logic in my oracle procedure to belive. The
question arises because at the moment, I'm hardcode db link but now I
have more ties db 3 and I will not reproduce the same procedure by
assigning diffferent db links.You can certainly write Java code to connect to each database with a direct connection. But all write code PL/SQL must include the database link. And the only way to avoid hard-coding the link is to keep the names of link in a table and use dynamic sql statements to build and run the query. This isn't what you want to do if you're looking for performance.
SELECT LAST_TASK_ID INTO LAST_SM_ID FROM CAPTURING where DB_TABLE='TEMP_SOAP_MONITORING'
;
For all we know which could be the WHOLE CAUSE of your problem. If there is no index on the table, you could do a full table to a table with lines scan 800 billion;
We have NO WAY of knowing since you haven't posted info. Please read the faq to find out how to post a request for tuning and the info you provide.
1. the query
2. the table and index DDL
3. the execution plan
4 RowCounts for tables and query predicates
5. the info on the stats: how you collected them and if they are up to date
update
CAPTURING set LAST_TASK_ID=
CASE WHEN ((SELECT MAX(ID) from TEMP_SOAP_MONITORING) IS NULL) AND (LAST_TASK_ID IS NULL) THEN (SELECT MAX(ID) from SOAP_MONITORING@FONIC_RETAIL)
WHEN (SELECT MAX(ID) from TEMP_SOAP_MONITORING) IS NULL THEN LAST_TASK_ID + 1
ELSE (SELECT MAX(ID) from TEMP_SOAP_MONITORING) END,
CAPTURING_DATE = CURRENT_TIMESTAMP, LAST_CAPTURED_DATE = LAST_CAPT_DATE where DB_TABLE='TEMP_SOAP_MONITORING';My guess is that TERRIBLE method of trying to get a 'LAST ID' is what's causing ALL your problems of performance. This method will not scale, and it will NOT properly work in a multiuser environment.
You need create a good BATCH_CONTROL table that all processes use during the creation and execution of lots.
The MASTER of the process batch:
1 Gets a new BATCH_ID using a sequence
2 locks the current row in the table control and uses / change the value "last".
3 creates a new line in the control table for the new batch process
4. the line of control to date with the start time, end time, result State, County, etc. for the batch
Your likely PROBLEM of has NOTHING to do with the links of the db.
-
Problem with the connection from Oracle to MS Excel - 64 bit
Hello
I have problem connecting Excel to oracle 11.2 using DG4ODBC.
OS - Windows 7 64 bit
Database version: - Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64 bit
Created system using ODBC DSN:
Name of Data Source = test12
Oracle home path:-D:\app\11g64db\product\11.2.0\dbhome_1
Contents of the initdg4odbc.ora file:
# This is an example of initialization file of the agent that contains the HS settings
# necessary for the database to ODBC gateway
#
# HS init parameters
#
Test12 = HS_FDS_CONNECT_INFO
HS_FDS_TRACE_LEVEL = 255
#
# Required for the non-Oracle system environment variables
#
#set < varenv > = < value >
Content of listener.ora:
listener.ora # Network Configuration file: D:\app\11g64db\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = live)
(ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
(SID_NAME = live)
)
(SID_DESC =
(PROGRAM = dg4odbc)
(SID_NAME = dg4odbc)
(ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
)
ADR_BASE_LISTENER = D:\app\11g64db
Content of tnsnames.ora:
tnsnames.ora # Network Configuration file: D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
excel_test =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST=localhost) (PORT = 1521))
(CONNECT_DATA = (SID = dg4odbc))
(HS = OK)
)
SCREW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = live)
)
)
Status of the listener
LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on August 29, 2014 13:56
: 11
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
TNSLSNR for Windows 64-bit version: Version 11.2.0.4.0 - Prod
ction
Start date August 29, 2014 13:34:58
Uptime 0 days 0 h 21 min 12 sec
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Listener parameter File D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\l
istener.ora
Listener log file D:\app\11g64db\diag\tnslsnr\Est-Subramanya\listener\al
ert\log. XML
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 1521)))
Summary of services...
Service "dg4odbc" has 1 instance (s).
"Dg4odbc" instance, status UNKNOWN, has 1 operation for this service...
Service 'live' has 2 occurrences.
Instance of "live" status UNKNOWN, has 1 operation for this service...
Instance of "live" READY State, has 1 operation for this service...
Service 'visXDB' has 1 instance (s).
Instance of "live" READY State, has 1 operation for this service...
The command completed successfully
DB Link:
CREATE DATABASE LINK PUBLIC TEST123 USING 'excel_test ';
error when querying of data:
Select * from test@test123;
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
ORA-02063: preceding line TEST123
28500 00000 - "connection between ORACLE and a non-Oracle system has sent this message:
* Cause: The cause is explained in the forwarded message.
* Action: See documentation for the non-Oracle of the transmission system
Message.
Error on line: 1 column: 20
Appreciate the help in advance...
Thank you...
This problem is solved. It was because of the excel 12.0 version when creating data source in administrative tools.
Thank you.
-
Display the exact string of the file as a hexadecimal display data
I'll send control messages via a serial port, which are built in a series of bytes. Currently, I have all these messages in an excel file which is 8 columns of 224 lines. The messages are the exact hex display, I need for my program works. To check my installation, I tested a few messages by manually typing in messages using a string constant and the value display hexadecimal and everything works well. How can I get the strings in my file to be recognized as they use hexadecimal display.
Thanks for your suggestions.
So if I understand, you read an ASCII representation to hexadecimal format of the command strings.
You must convert ASCII bytes, then the chain, in this way:
The entrance on the left string must be read from your file, of course.
Notice that the representation of the integer constant must be U8.
You don't need the Trim function spaces if you are sure that the string does not contain additional characters beyond the last hexagonal number.
-
Connection from Oracle to DB2 LUW and Asian data insertion/selection.
Hello
I have configured the connectivity between Oracle and DB2 LUW, using DG40DBC but my requirement is to see the characters Asian (Chinese, Japanese, etc). Then, when I select the data through DB DB2 link I get of the question marks (?). We need to change the settings in the configuration files to support this language?
Any help is very appreciated!
Thank you
Steve.Isql instruction is not able to display characters unicode is partly justified. In my (Linux with LANG value UTF8) env it displays Chinese and Japanese characters.
You can also try to use the unicode equivalent to "isql" called "iusql. In addition, please provide the character set of your DB2 database.
Published by: kgronau on January 16, 2012 06:31
Also DG4ODBC displays correctly using your ODBC from above and these DG4ODBC settings:
HS_FDS_SHAREABLE_NAME =/home/odbc64/unixODBC/2.3/lib/libodbc.so
HS_NLS_NCHAR = UCS2
HS_LANGUAGE = AMERICAN_AMERICA. AL32UTF8For a DB2 database using this character set parameter:
Database code page = 1208
Database of codeset = UTF - 8 -
Get the email of the user via LDAP
I would like to send an email via APEX whenever a request is rejected. I want to send to the user who made the request through the system. This user has been authenticated via LDAP (Active Directory) in another application, when he sent this request. Therefore, his e-mail address is located in the sound profile AD with that it authenticates. All applications are listed in a report in another application (which uses the same LDAP authentication scheme) where they can be reviewed, rejected or accepted. When the user clicks the button refuse, it updates the status of the query in the database and sends an e-mail message to a hardcoded email address. I want to send to the user who made the request.
Is it possible to use this LDAP session (because I'm connected to the application via LDAP, I take for granted that there must be an LDAP session valid in use), or what I need to connect to the server again? If it's the latter, then how can I do? I can't hard-code just my own credentials of the service, that would be nuts.
I thought I could use a script like this and call it in a process page, but I know I'm missing something.
Any ideas?create or replace function Get_Mail(p_user in varchar2) return varchar2 is l_attrs dbms_ldap.string_collection; l_message dbms_ldap.MESSAGE; l_entry dbms_ldap.MESSAGE; l_vals dbms_ldap.string_collection; l_user varchar2(256); l_user2 varchar2(256); l_mail varchar2(256); l_ldap_server varchar2(256) := '****'; l_domain varchar2(256) := '****'; l_ldap_port number := 389; l_retval pls_integer; l_session dbms_ldap.session; l_username varchar2(256) := NULL; l_password varchar2(256) := NULL; begin dbms_ldap.use_exception := TRUE; l_user2 := p_user||'@'||l_domain; l_user := l_username||'@'||l_domain; l_session := dbms_ldap.init (l_ldap_server, l_ldap_port); l_retval := dbms_ldap.simple_bind_s (l_session, l_user, l_password); l_attrs(1) := 'email'; l_retval := dbms_ldap.search_s (ld => l_session, base => '****', scope => dbms_ldap.scope_subtree, filter =>'&(userPrincipalName='|| l_user2 || ')(objectClass=user)', attrs => l_attrs, attronly => 0, res => l_message); l_entry := dbms_ldap.first_entry (ld => l_session, msg => l_message); l_vals := dbms_ldap.get_values (ld => l_session, ldapentry => l_entry, attr => l_attrs(1)); l_mail := l_vals(1); return l_mail; exception when others then begin dbms_output.put_line (' Erreur #' || TO_CHAR (SQLCODE)); dbms_output.put_line (' Message: ' || SQLERRM); l_mail := NULL; return l_mail; end; end Get_Mail;
Best regards
MathieuI found the solution, thanks to the work of John Edward Scott and Scott Spendolini "Pro Oracle Application Express". So, for those who are interested:
I created two types:
create or replace type ty_ldap_query as object( dn varchar2(200), attribute_name varchar2(100), attribute_value varchar2(100));
create or replace type tbl_ty_ldap_query as table of ty_ldap_query;
Next, I created the LDAPQuery routine:
create or replace function LDAPQuery( p_host in varchar2, p_port in varchar2, p_user in varchar2, p_password in varchar2, p_dn_base in varchar2, p_filter in varchar2, p_attributes in varchar2) return tbl_ty_ldap_query PIPELINED is v_result tbl_ty_ldap_query := tbl_ty_ldap_query(ty_ldap_query(NULL, NULL, NULL)); retval PLS_INTEGER; v_session DBMS_LDAP.SESSION; v_attrs DBMS_LDAP.string_collection; v_message DBMS_LDAP.MESSAGE; v_entry DBMS_LDAP.MESSAGE; v_dn VARCHAR2 (256); v_attr_name VARCHAR2 (256); v_ber_elmt DBMS_LDAP.ber_element; v_vals DBMS_LDAP.string_collection; b_first BOOLEAN := TRUE; v_dn_identifier VARCHAR2(200); v_attributes apex_application_global.vc_arr2; BEGIN retval := -1; DBMS_LDAP.use_exception := TRUE; v_session := DBMS_LDAP.init (p_host, p_port); retval := DBMS_LDAP.simple_bind_s (v_session, p_user, p_password); v_attributes := apex_util.STRING_TO_TABLE(p_attributes, ','); for i in (v_attributes.first)..(v_attributes.last) loop v_attrs(i) := v_attributes(i); end loop; retval := DBMS_LDAP.search_s (v_session, p_dn_base, DBMS_LDAP.scope_subtree, p_Filter, v_attrs, 0, v_message); retval := DBMS_LDAP.count_entries (v_session, v_message); v_entry := DBMS_LDAP.first_entry (v_session, v_message); WHILE v_entry IS NOT NULL LOOP v_attr_name := DBMS_LDAP.first_attribute (v_session, v_entry, v_ber_elmt); WHILE v_attr_name IS NOT NULL LOOP v_vals := DBMS_LDAP.get_values(v_session, v_entry, v_attr_name); IF v_vals.COUNT > 0 THEN FOR i IN v_vals.FIRST .. v_vals.LAST LOOP v_dn_identifier := dbms_ldap.GET_DN(v_session, v_entry); pipe row (ty_ldap_query(v_dn_identifier, v_attr_name, v_vals(i))); END LOOP; END IF; v_attr_name := DBMS_LDAP.next_attribute (v_session, v_entry, v_ber_elmt); END LOOP; v_entry := DBMS_LDAP.next_entry(v_session, v_entry); END LOOP; retval := DBMS_LDAP.unbind_s(v_session); END LDAPQuery;
And I asked it in this way:
select attribute_value from table(LDAPQuery('
', ' ', ' ', ' ', ' ', '&(!(logonCount=0)(objectClass=User)(sAMAccountName= ))', 'mail')) In the book he said I could do it (instead of using LDAP filters):
where dn = 'CN=jes,CN=Users,DC=domain,DC=localdomain'
But it wouldn't work for some reason any. In any case, it's working now.
Best regards
Mathieu -
Download "invalid format" on the computer connecting HP TV to the tv screen.
Original title: hp pavilion g6 does not connect to the tv via a hdmi cable. (Tv says 'Invalid Format)
Hi, im trying to connect my computer to my TV using a hdmi cable and I change the resolution of the screen, and it still says "invalid format" on the TV screen.
Hi, in pot
Welcome to Microsoft Community where you can find all the answers related to Windows.
According to the description, it looks like the resolution is not correct when you connect the computer to a TV.
I have these steps that should help you with this problem.
Visit this link and indicate "connect your computer to your TV.
Hope this information helps. Answer us queries windows and we will be happy to help.
-
The scanner interrupts the connection of WIFI halfway the scan. I can scan sometimes two or three pages, and then the next page will scan only partial and the connection is abandoned - typically freezes application (VueScan), while the scanner window indicates that the analysis is ongoing. If I wait until the scanner end I get only part of the page, with the background that half left in white. That is what it is? Is the problem with VueScan, Mac OSX 10.10.1, OfficeJet 7500 or my WIFI network?
Thank you!
My system: Mac OSX 10.10.1
VueScan 9 x 32 (9.4.59)
iMac 2.8 GHz Intel Core Duo (24 "beginning 2008)
6 GB Memmory 800 MHz, DDR2 SDRAM
HP 7500 has large Format Printer/Scanner (model E910a)
WIFI modem: Cisco 3825 DPC
(Shaw CableVision/WIFI modem)
Hello
What happens when you scan from the HP or Capture of Image scanning software, you see similar problems?
In the affirmative, please let me know because it wil require to solve any problem of connectivity to the printer.
If everything works with software such as HP can happen due to any problem with VueScan, such I would say contacting VueScan at torubleshoot because they are more familiar with their product.
Please let me know the results,
Shlomi
-
Hi, I use 1.5 space Horizon
can someone help me by telling me where I can change the connection string for the database on the virtual machine itself.
I was away, and our stuff has been migrated databases to another server. Now my horizon does not connect because it can not find the database. I can either on the hwconfigurator.xxx.com.
Thank you
What do you see when you go to https://hwconfigurator.xxx.com?
You can try to change this property in /usr/local/horizon/conf/runtime-config.properties on your service - will (s) and the server restart of tc by using the command "/etc/init.d/horizon-frontend restart".
datastore. JDBC. URL = jdbc:PostgreSQL: / /
/saas? = stringtype unspecified -
Hi brothers and sisters.
Hope that you are well. I installed Oracle Developer Suite 10 g on Windows 7 successfully and that it works correctly. I remember the login and the password. But what is the connection / host to connect to sqlplus, Form Builder, string etc. ? Where should I check it?
NoorHello
You can connect without string something like that.
sys/password as sysdba
Sarah
-
info from the connection string
Hello
Anyone know if it is possible to get information from the connection string in sql / plsql?
You can do
SELECT user to double;
and you get the current user. Is it possible to get the current connection string information too?
Thanks in advance.
MonikaWhat happened to create an external table reading the newspaper to the listener?
-
I have a problem of connection error strange that a "OracleConnection.ConnectionString is not valid" with my program ASP.net/c#, but when I try the page again once it works after that.
I create the connection string in the code and then pass it a bit like this:
* private readonly OracleConnection conn = new OracleConnection (oradb); variable in class *.
* / / in the Page_Load method *.
_oradb = "password =" + oraPassword + ";". " User ID =' + oraUserName + '; Data source = mydb; » « ;" *
_conn. Open(); *
User/login name are also generated and inserted in the connection string and when you debug checked the connection string and it's exactly the same every time. It is as if the connection is interrupted and the first time, it attempts to restore, it gives the error, but then it opens the connection after that and failed again in the same window.
Any ideas what this might be caused by? I close the connection to another method, after all I want to be the DB and written on the screen.
The web server is IIS, is the version of .NET 3.5 and the library referenced Oracle is Oracle.DataAccess.dll. In addition, the DB version is 10.2.0.4. Don't know if everything what is necessary, but I thought I'd throw out there, just in case.
Edited by: psaleh may 24, 2010 23:37When you create here of the OracleConnection object.
* private readonly OracleConnection conn = new OracleConnection (oradb); variable in class *.
_oradb might be empty or invalid during the first.
Instead, try this-
* private readonly OracleConnection _conn = new OracleConnection(); variable in class *.
* / / in the Page_Load method *.
_conn. ConnectionString = "password =" + oraPassword + ";". " User ID =' + oraUserName + '; Data source = mydb; » « ;" *
_conn. Open(); *There is a separate forum for the ODP. NET-
http://forums.Oracle.com/Forums/Forum.jspa?forumid=146 -
Consolidation of the connection by Instance name strings
With the help of SQLD 4.0.2 / RDBMS 11 G r2
I have a lot of connections defined through multiple oracle instances. I would like to consolidate all connections per instance (or somethings similar) name for MISTLETOE. I know that I can color each connection (for all connections in instance1, blue green for all connections to the instance 2, etc.), but I would like to be able to use the sign more to reduce / enlarge each instance together, eliminating the need to view all of the defined connections available on the screen.
I did a little research in the forum but no luck. Any ideas?
Thanks in advance.
You can create the connection folder, "add to the file.
There is no automatic grouping of the instance at this time.
-
Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500
My main.js resembles
xmlDataSource var = {}
URL: 'dcds. - symbianxml.aspx", etc. (sample).
init: function() {}
URL, successful reminder, the reminder of failure
This.Connect (this.) (URL, this.responseHandler, this.failureHandler);
},
/**
* Analyzes the XML document in an array of JS objects
@param xmlDoc XML Document
* @returns {table} array of objects of the device
*/
parseResponse: {function (xmlDoc)}
var chElements = xmlDoc.getElementsByTagName ("channel");
channels of var = [];
Console.log (chElements.Length);
for (var i = 0; i)< chelements.length;="">
var channel = {};
for (var j = 0; j)< chelements[i].childnodes.length;="">
var node = Sublst.ChildNodes(1).ChildNodes(0) chElements [i] [j];
If (node.nodeType! = 1) {//not an element node}
continue;
}
Channel [node. TagName] = node.textContent;
}
Channels.push (Channel);
}
Console.log (Channels.Length);
return the strings;
},
/**
Manages the response and displays the data from device web app
@param xmlDoc
*/
responseHandler: {function (xmlDoc)}
var channel = this.parseResponse (xmlDoc);
var markup = "";
for (i = 0; i< channels.length;="">
markup += this.generateHTMLMarkup (i, channels [i]);
}
document.getElementById("accordian").innerHTML = mark-up;
},
/**
Generates HTML tags to insert in to the DOM Web App.
* @index i, index of the device
@param device, device object
*/
/*
generateHTMLMarkup: function (i, channel) {}
var str ="";
"Str += '.
' onclick =-"mwl.setGroupTarget ('#accordian ',' #items_" + i + "', 'ui-show ',' ui - hide');" + ".
"mwl.setGroupTarget ('#accordian ',' item_title_ #" + i + "', 'ui-open', 'ui-farm'); Returns false; \ » > » ;
"" Str += "" + channel ['name'] + ' ";
"Str += '.";";
"Str += '.";
"Str += '."+" id: "+ channel ['id'] +" ' "";
"Str += '."+" type: "+ channel ['type'] +" ' "";
"Str += '."+" language: "+ channel ['language'] +" ' "";
"Str += '.«+ "bandwidth:" + "fast" channel + "»»";
"Str += '."+" cellnapid: "+ channel ["cellnapid"] +". "";
"Str += '.«+ ' link: '+'start the video »»";
"Str += '.
return str;
},*/
generateHTMLMarkup: function (i, channel) {}
var str ="";
"Str += '.";
"Str += '.«+ ' link: '+'start the video »»";
return str;},
failureHandler: {function (reason)}
document.getElementById("accordian").innerHTML = "could not get XML document.
'+ reason;
},
/**
Retrieves a resource XML in the given URL using XMLHttpRequest.
@param url URL of the XML resource to retrieve
@param called successCb, in the XML resourece is recovered successfully. Retrieved XML document is passed as an argument.
@param failCb called, if something goes wrong. Reasons, in text format, is passed as an argument.
*/Connect: {function (url, successCb, failCb)
var XMLHTTP = new XMLHttpRequest();
XMLHTTP. Open ("GET", url, true);xmlhttp.setRequestHeader("Accept","text/xml,application/xml");
xmlhttp.setRequestHeader ("Cache-Control", "non-cache");
xmlhttp.setRequestHeader ("Pragma", "non-cache" "");
var that = this;
XMLHTTP.onreadystatechange = function() {}
If (xmlhttp.readyState == 4) {}
If (XMLHTTP. Status == 200) {}
{if (!) XMLHTTP.responseXML)}
try {}
If server has not responded with good an XML MIME type.
var domParser = new DOMParser();
var xmlDoc = domParser.parseFromString(xmlhttp.responseText,"text/xml");
successCb.call (that, xmlDoc);
} catch (e) {}
failCb.call (, "answer was not in an XML format.");
}
} else {}
successCb.call (that, xmlhttp.responseXML);
}
} else {}
failCb.call (this, "connection failed: status"+ xmlhttp.status ");
}
}
};
XMLHTTP. Send();
}
};Please see the content in main.js is fully analyzed.
Forward for the solution to my request all members of the community...
Maybe you are looking for
-
Xinda dominate consumers cheating game
Thank you although being very busy toglance see my messages, I found the game after xinda dominated the telephone game prepaid must pass through several military commanders activities to achieve, if not by phone prepaid, day activities 1 PCs, 150 day
-
I am running ubuntu on an AMD 64 bit system. I installed firefox as part of the distribution. I need to run a 32-bit java application with the 32-bit jre plugin. When I install the 32-bit jre by http://www.oracle.com/technetwork/java/javase/manual-pl
-
Laptop: laptop does not start
My laptop does not start, how can he?
-
Satellite P300D - buzzing noise when serving DVDs or videos
I've recently upgraded from Vista to Windows 7 Ultimate. Since the upgrade, whenever I have watch a movie or other video on my laptop, there's a hum intermittent all minutes from this last for a second or two and seems also makes video stuttering at
-
How to reinstall the Photos app. ?
He is a previous question I posted about getting the "update not available with this user Id" when you try to install an update of Photos under OS X 10.11.2. Someone sent a response recommending photo backup (done) and then uninstall and reinstallati