How to connect to the database

Hi all

I use labsql (and quite new to him m) and the server Mysql 5.1.I wanted to know how to connect to the database without changing the name of the dsn from the tools administrative/ODBC 5.1 driver manually. I want to install exe in several PC and it would be a great help if I could make the connection directly but my Vi.

I went through several forums and came to know that 'Provider = ProviderName; Data Source = DatabaseSource; Initial Catalog = DatabaseName; User = username ID; Password = password', should solve the problem. But where in my case I m still confused. The connection string above does not sit well with me.

Can someone help me please.

Have a look here, where I have such a picture to show how to form a string constant to connect to the database. Some subsequent posts in this thread should also be useful.

Good luck!

Ian

Tags: NI Software

Similar Questions

  • How to connect to the database for all reports EN

    Hello

    I've developed 100 reports in the client of the production, test purpose that I moved
    test client. How can I connect to the database for all reports at once?

    Concerning
    Thaer

    Hi Thaer,

    You can connect to the connection of database for all reports through the workspace of HFM.

    Connect to the HFM area--> click--> Explorer, and click Tools--> click Manager of database and respective connections of Production Instance to the Instance of Test required information and that you will be able to connect to the Test database for all reports both change.

    Kind regards
    Srikanth

  • How to connect to the database without sqlclient soa

    Hi all

    I have a very simple question.

    I need to write a shell script to get some stats for bpel instances of database as part of the daily health check.

    The problem is in our area of unix server, any customer database is not installed.

    Sql client is present as part of the installation of SOA that we can use to create the connection to the database? or by any mode of access to the shell database.

    Thanks in advance,

    Bob

    Hi Bob, there.

    most of the components in the FMW stack including SOA infrastructure rely on pure JDBC to talk to RDBMS and as I know there is no client Oracle installed in slot the FMW home (after installing SOA Suite).

    One possibility would be to use the Oracle Instant Client and use its tools from your shell scripts. It's a bit unzip and run Setup.

    HTH,

    A.

  • How to connect to the database that resides on the web server through blackberry application

    Hello

    I'm new to the Blackberry development. I want to develop an application that will get the values stored in a database on the server. And on the key event, it will again store the information in the database.

    I use Blackberry Java development environment Version: 4.2.0.98

    What should I do?

    To connect to the server, you can use HTTP or a sleeve. Search for HTTP and socket connection examples. Implementation depends on your condition.

    You can write in return of the application on the ground that can automatically syc.

  • How to find the number of users connected to the database of the level operating system (Linux)

    Hi all

    Could someone knows how to find the number of users connected to the database without connection with sql * more

    y at - it a command to find?

    example, we have 10 databases in a server, how to find the number of users connected to the special data base without connecting to database(v$session)?

    the Oracle version:-10g, 11g
    Operating system:-OEL4, OEL5, AIX, Solaris

    any help will be appreciated.

    Thanks in advance.

    Thank you.

    Kind regards
    Rajesh.

    but you can say total number of connection with the above given the command? It would also be useful to know.

    See you soon,.
    LKM

  • How to connect to the right database from SQLPLUS

    I am running Windows 2008 Server 64-bit and 11g DB (v 11.2.1.0)

    Basically, I created two databases DB1 and DB2. I'm trying to log on to the account SYS to DB1 but SQLPLUS seems to automatically to connect to DB2. How can I control which SQLPLUS database logs in it please? Thanks, J

    Connect to the database using the connection string if you have created and launched the listener for the database server.

    > sqlplus sys /@ as sysdba

    > sqlplus sys /@ as sysdba

    If this isn't the case, then all first set the ORACLE_SID and then try to connect.

    > set ORACLE_SID = db1
    > sqlplus sys / as sysdba

    > set ORACLE_SID = db2
    > sqlplus sys / as sysdba

  • VAIO Messenger-unable to connect to the database

    I had this problem for months. When I connect to the internet... about 10-15 minutes later... a box opens "Vaio Messenger unable to connect to the database." I'd like to just turn off Vaio Messenger. I looked up how to disable Messenger but he always States go to the settings dialog box. For the life of me I can't find a dialog box. How can I disable Messenger? How do I repair Messenger so it CAN connect to the database? Help!

    I had this problem for months. I can't change the dialog box. I can't uninstall vaio Messenger. I have so much pain to find this site, if you have a cure please write me [email protected]

  • Unable to connect to the database. adbldxml.pl

    I've updated 11.1.0.7 12.1.0.2 database database with a 12.1.3 apps

    I produced the apps appsutip.zip and copied to the 12.1.0 oracle home

    but when I run perl adbldxml.pl in appsutil/bin and answering questions that I can't connect to the database

    Hello

    When I run the listener his race of my former oracle home how change that

    You must stop the listener of the old House and new start home. You may need to copy all the files from the old House to the new house network and change the oracle home location in all the files manually (or) you can configure the new listener of 12 at home.

    To get an idea please see my blogpost:

    http://appsdbaworkshop.blogspot.com/2012/03/Oracle-11gr2-database-upgrade-in-apps.html

    Kind regards

    A H E E R X

  • Connect to the database through PHP Oracle

    Hello

    I'm trying to run a PHP script on a button from an external site that connects to the Oracle database. Someone at - it an idea how to connect to a database SQL as I want to use the Web site as a customer to the product which inserts records?

    Thank you very much!

    I read your other thread Connect to database via PHP APEX found on the forum of the APEX.

    The person who told you to post here you gave some bad advice.

    "cj" has some good information for you in your original post.

    As you use the APEX and PHP to interact with the database at the same time, you will need to do some design work before you continue.

    Step 1: Learn Oracle.

    Read Oracle Concepts Guide

    If you have questions about how Oracle works, feel free to ask in the general forum.

    Step 2: Design your security

    identify the tables of the PHP users will be allowed access. (I only allow to SELECT)

    identify processes that PHP users will be allowed to do. (my LMD is placed here)

    Think "ROLES".

    There is a forum "database security - general."  But, I think that general would also work.

    Step 3: Move the "business logic" in the database

    You want to reuse the APEX of the process in PHP, PERL/CGI, .NET, etc etc.

    To do this, the only way is to move the process of the APEX in the database code. (IE packages)

    In other words: put your "business logic" within your database.

    Not all the processes of the APEX should be moved (for example 'extract of automatic data"is specific APEX)

    You can create Packages that can be used instead of "Automatic DML" within the SQL APEX workshop.

    (post in the forum of the APEX for more information)

    Other processes, you will need to read the code to determine.

    Also, you'll want to move your APEX 'Permission' and 'Validation' code in packages also.

    In this way: PHP, .NET, Java, etc., etc. can use the same code 'validation '.

    Step 3: use a code repository

    You will create a large number of packages.

    You'll want to use a Code (e.g. SVN) repository to keep a history of your code.

    Oracle SQL Developer (free) must be able to help here

    Step 4: consider asking for help

    You should consider hiring a consultant to help you if you don't have in-house expertise that can solve the above steps.

    MK

    PS - for later use, remember to mark your question as 'responded' If you realize that it is in the wrong forum.

  • Inability to connect to the database

    OS: 8.1 Pro 32-bit Windows

    Java: 7u45 (build 1.7.0_45 - b18)


    Install Oracle 11g.

    When you open localhost:1158 / em - the message:

    "The database is down. Please specify the credentials of the host to access the restart and database diagnostic tools. »

    After entering the command:

    emctl status dbconsole

    It is reported that Oracle Enterprise Manager 11 g is running.

    When you type:

    emctl status agent

    indicates that the agent works.



    All Oracle, except OracleJobScheduler, running services.


    SYSMAN, DBSNMP, SYSTEM and SYS are not blocked


    File Emoms.trc when connecting to the database:

    http://rghost.NET/50166676


    Folder with alter.log:

    http://rghost.net/50165784



    In listener.ora replaced


    SID_LIST_LISTENER =

    () = SID_LIST

    () SID_DESC =

    () SID_NAME = CLRExtProc( )

    () ORACLE_HOME = C:\app\TorchTT\product\11 2. . 0\dbhome_1( )

    () PROGRAM = extproc( )

    () ENVS = "EXTPROC_DLLS =ONLY:. C:\app\TorchTT\product\11. ("2. 0\dbhome_1\bin\oraclr11. dll" ()

    )

    )


    on

    SID_LIST_LISTENER =

    () = SID_LIST

    () SID_DESC =

    () SID_NAME = TorchTTDB( )

    () GLOBAL_DBNAME = TorchTTDB( )

    () ORACLE_HOME = C:\app\TorchTT\product\11 2. . 0\dbhome_1( )

    () PROGRAM = extproc( )

    () ENVS = "EXTPROC_DLLS =ONLY:. C:\app\TorchTT\product\11. ("2. 0\dbhome_1\bin\oraclr11. dll" ()

    )

    )


    did not help.



    Subsequently decided to not wait and reset the database.


    Immediately after the reinstallation of page https://localhost:1158 / em / successfully opened.


    Only when the request to add a table to the executed successfully, but Developer SQL database query in the list of tables is not displayed, update the list and restart the program did not help. However, when re - create the table with the same name appears on the error you have already created a table with a given name.


    After restarting the computer database is available again.

    Can you please how to fix?


    Translated by Google Translate.

    If I'm right, the problem is resolved.

    Each of the reinstall previous, of the database at the beginning of the message appeared on the system configuration is not in line with the minimum requirements. Earlier the same error is indicated as a result of the use of new versions of Java, as Oracle 11 g support officially more young and therefore do not attach importance to this post.

    In the end, I decided once more to reinstall the basis data, but in compatibility mode for Windows 7. So - when you run the error to install an incorrect configuration does not appear. And after that the installation of the base is available, restart the machine - the base is again available.

  • Connect to the database with SQL * more: is TNSNAMES. ORA used?

    Hello

    We have a local database called DEV01 and a copy of this database in a data center. To be able to connect to both databases, the TNSNAMES file. ORA

    on the local database server (not the one in the data center) has the following entries:

    / * Entry for the local database * /.

    DEV01_local, DEV01_local. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server01) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = DEV01)
    )
    )

    / * Entry for the database in the data center * /.

    DEV01, DEV01. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server02) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = DEV01)
    )
    )

    When I connect to the local database server, I set the Oracle environment as follows:

    export ORACLE_SID = DEV01

    export PATH=/opt/oracle/app/oracle/product/9.2.0/bin:$PATH

    export ORACLE_HOME=/opt/oracle/app/oracle/product/9.2.0

    Now I start SQL * more as follows:

    Oracle # > sqlplus user/user

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

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

    SERVER01 DEV01

    As the SID is on two databases of the same (DEV01) I really don't understand how Oracle decides which of the SQL databases * more connects to.

    Is it the entry in the TNSNAMES file. ORA?

    But when I start SQL * more as follows:

    Oracle # > sqlplus user/user@DEV01_local

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

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

    SERVER01 DEV01

    or

    Oracle # > sqlplus user/user@DEV01

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

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

    DEV01 server02

    everything is as expected.

    Does anyone know who is the chosen database when just to connect with 'sqlplus user/user' (without the @DEV01 or @DEV01_local)?

    Any help will be appreciated!

    Rgds

    Jan

    When you connect to the local database that is connected to the server01, you need only specify the sid in the environment, in this case, Oracle tnsnames file to connect, actually uses, it uses any of the listener.  It uses what is called a connection needed.  It is purely a side connection server, and as long as the sid is located in the environment resolves to a database running on that server, you will be get connected.

    When you connect using the @connect_descriptor, like you second case, then Oracle will use the configured naming, including tnsnames, methods to solve the 'real' database  In this case, the auditor is required to create the connection to the database.

    John

  • Unable to connect to the database homepage OracleXE 10.2.0.1.0

    Hi Oracle Experts,

    I installed OracleXE 10 g on an application server and has worked for 3 years. The installation is based on the default configuration where:

    Destination folder: C:\oraclexe\

    Oracle database listener port: 1521

    Port for the Oracle Services Microsoft Transaction Server: 2030

    HTTP listener port: 8080

    The installation work well and be able to view the home page of the database. The problem arises when local desire to ICT to change the listening port of Oracle database to another port instead of 1521 to comply with their security policies.

    I changed the port using method below:

    (1) update the port number in listener.ora desired port

    (2) make sure SID_name (XE) is registered in listener.ora by adding this line to SID_LIST

    (SID_DESC =

    (SID_NAME = XE)

    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)

    )

    )

    (3) recharge the listener and restart the service.

    I am able to connect to the database using SQL Plus by using the port assigned port, but when I tried to view the home page of the database, I can't load the page with Internet Explorer connection problem error.

    I changed the default to 8089 but still cannot connect HTTP port. But when I went to the port (1521) default listening port, I am able to view the home page of the database.

    Anyone know how to fix this?

    Thank you in advance.

    You have followed all the steps documented? 4 general network connections

    HTH
    Srini

  • Connect to the database that has lost access to a partition

    Hi all
    Suppose we have a partitioned table that look in some storage (physically) different. If the database lost access to one of them, what happens? The database can be loaded? If the user is unable to connect to the database, what can we do to solve the problem (because one of the characteristics of partitioning is availability)? If a user tries to get some data (by request), oracle will declare that a partition is not available and so the information may be incomplete?
    Best regards

    Interesting, above should work without error, as is explained in the following note:

    * How drop a Tablespace offline when the Partitions of a partitioned Table resides in [ID 267125.1] *.

    I wrote my previous post based on my memory of a similar situation several months ago, but I tested it again now:

    SQL> create tablespace part01 datafile 'C:\oracle\base\oradata\ORCL\part01.dbf' size 10M;
    
    Tablespace created.
    
    SQL> create tablespace part02 datafile 'C:\oracle\base\oradata\ORCL\part02.dbf' size 10M;
    
    Tablespace created.
    
    SQL> create table t1 (id number, text varchar2(100), constraint id_pk primary key (id))
        partition by range(id)
        (
        partition low values less than (1000) tablespace part01,
        partition high values less than (2000) tablespace part02
        );
    
    Table created.
    
    SQL> insert into t1 select rownum, 'hello' from dual connect by level <2000;
    
    1999 rows created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> shu immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    
    del C:\oracle\base\oradata\ORCL\_part01.dbf
    sqlplus / as sysdba
    
    SQL*Plus: Release 11.2.0.3.0 Production on Sun Apr 21 10:36:35 2013
    
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area 2137886720 bytes
    Fixed Size                  2256912 bytes
    Variable Size            1392513008 bytes
    Database Buffers          738197504 bytes
    Redo Buffers                4919296 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
    ORA-01110: data file 5: 'C:\ORACLE\BASE\ORADATA\ORCL\PART01.DBF'
    
    SQL> alter database datafile 5 offline drop;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> select count(*) from t1;
    select count(*) from t1
                         *
    ERROR at line 1:
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: 'C:\ORACLE\BASE\ORADATA\ORCL\PART01.DBF'
    
    SQL> select count(*) from t1 where id >= 1000;
    
      COUNT(*)
    ----------
          1000
    

    Note that, drop partition might work, based on the structure of the table / index, but I created an example where it does not work.

    
    SQL> alter table t1 drop partition low;
    alter table t1 drop partition low
    *
    ERROR at line 1:
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: 'C:\ORACLE\BASE\ORADATA\ORCL\PART01.DBF'
    
    SQL> create table t2 as select * from t1 where 1=2;
    
    Table created.
    
    SQL> alter table t1 exchange partition low with table t2;
    
    Table altered.
    
    SQL> select count(*) from t1;
    
      COUNT(*)
    ----------
          1000
    
  • sqlplus error connecting to the database

    Hello

    After the connection to the database using the username and passwd, I get the error message below
    connection is established and able to work asusal,

    $$$$$$$$$$$$$$$$$$$
    can u help me how to remove in decline and error below...
    $$$$$$$$$$$$$$$$$$$$$$$$$$$

    Enter the password:

    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    Select "Welcome to the database: ' | '. name of database v$
    *
    ERROR on line 1:
    ORA-00942: table or view does not exist

    The user name who logged has not the right to select on the sys.v_$ database view that is exposed through the database of v$.

    HTH - Mark D Powell.

  • cannot connect to the database / OS

    Hi all

    I am not able to connect to the database as my database files was complete. I can't connect even the operating system. Please suggest a way I can connect to the DB. operating system or to move data.

    Hello
    You connect to the server and delete the archive logs (the sound that you no longer need) and free up space. Try to connect to the database with sqlplus as sysdba with - option prelim. Then, you can use RMAN to delete old logs archiving as Osama said.

    http://tech.e2sn.com/Oracle/troubleshooting/hang/how-to-log-on-even-when-SYSDBA-can-t-do-so

    Thank you and best regards,
    Raj K.

Maybe you are looking for