Oracle zugriff vom NT auf eine Datenbank

Ich habe folgendes Problem.

Ich möchte mit dem Befehl

EXEC SQL CONNECT :USER IDENTIFIED BY :stuck_out_tongue:ASS

auf eine Datenbank zugreifen.

beziehunmgsweise anmelden.

Die log Datei der Datenbank sagt das man noch nicht mal probiert hätte auf die Datenbank zuzugreifen.

Wer hat eine lösung?

Ich habe folgendes Problem.

Ich möchte mit dem Befehl

EXEC SQL CONNECT :USER IDENTIFIED BY :stuck_out_tongue:ASS

auf eine Datenbank zugreifen.

/* declare needed host variables */
char username[10] = „scott“;
char password[10] = „tiger“;
char db_string[20] = „NYNON“;

/* give the database connection a unique name */
EXEC SQL DECLARE DB_NAME DATABASE;

/* connect to the non-default database */
EXEC SQL CONNECT :username IDENTIFIED BY :stuck_out_tongue:assword
AT DB_NAME USING :db_string;

The identifiers in this example serve the following purposes:
The host variables username and password identify a valid user.
The host variable db_string contains the Net8 syntax for conecting to a non-default database at a remote node.
The undeclared identifier DB_NAME names a non-default connection; it is an identifier used by Oracle, not a host or program variable.

Weitere Infos stehen in „A68022-01“ Pro*C/C++ Precompiler Programmer’s Guide
Gruß
Dmitri