Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Oracle Apache PHP => Fehlermeldung ORA-12154

Empfohlene Antworten

Hallo,

ich versuche mit einen Apachen und PHP auf eine Oracledatenbank auf einen anderen Rechner zuzugreifen. mit SQLPLUS kann ich vom Webserver aus auf die Datenbank. Wenn ich mit einer PHP versuche eine Verbingdung aufzubauen kommt folgende Fehler:

Warning: _oci_open_server: Error while trying to retrieve text for error ORA-12154 in /var/www/html/index.php on line 8

das ist der Code für den Verbindungaufbau:

<?

$dbuser = "system";

$dbpass = "manager";

$connection =

OCILogon("$dbuser","$dbpass","saratoga.world");

if ($connection == false){

echo OCIError($connection). "<BR>";

exit;

}

$query = "select * from dict;";

$cursor = OCIParse ($connection, $query);

if ($cursor == false){

echo OCIError($cursor). "<BR>";

exit;

}

$result = OCIExecute ($cursor);

if ($cursor == false){

echo OCIError($cursor). "<BR>";

exit;

}

...

OS Redhat 7.2

DB Oracle 8.1.7

PHP 4.2.2

Apache 1.3.20

Thanks localhost

Hi!

Danke für das Passwort und den User und so...

Mal im Ernst: Anscheinend kann der Datenbankname nicht aufgelöst werden, hiser mehr dazu http://www.is.mcgill.ca/minerva/Help/ora12154.htm

mfg ___

an das habe ich auch schon gedacht ist es aber nicht da ja sqlplus am selben Rechner läuft.

system mit pass manager ist ein standart benutzer der von oracle angelegt wird bei der installation. und als erstes raus fliegt wenn das System in Betrieb geht :-)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.