Foros del Web » Programando para Internet » PHP »

PHP OO Error en pagina de php

Estas en el tema de Error en pagina de php en el foro de PHP en Foros del Web. ESTE ES EL ERROR EN LA PAGINA TRABAJO CON WINDOWS SP2, YA HICE EL ODBC, INSTALE EXTENCIONES PERO ME SALE ESTO Fatal error: Uncaught exception ...
  #1 (permalink)  
Antiguo 04/10/2011, 15:54
Avatar de jodatelo  
Fecha de Ingreso: marzo-2010
Ubicación: Ecuador
Mensajes: 65
Antigüedad: 14 años
Puntos: 1
Pregunta Error en pagina de php

ESTE ES EL ERROR EN LA PAGINA
TRABAJO CON WINDOWS SP2, YA HICE EL ODBC, INSTALE EXTENCIONES PERO ME SALE ESTO

Fatal error: Uncaught exception 'com_exception' with message 'Source: Microsoft OLE DB Provider for ODBC Drivers
Description: [IBM][CLI Driver] SQL10007N Message "0" could not be retrieved. Reason code: "2". ' in c:\interno\wwwroot\aplica_64\comun\conn.php:27 Stack trace: #0 c:\interno\wwwroot\aplica_64\comun\conn.php(27): com->open('DSN=odbc_db1;UI...') #1 c:\interno\wwwroot\aplica_64\comun\scrty.php(2): include('c:\interno\wwwr...') #2 c:\interno\wwwroot\aplica_64\main\menu.php(2): include('c:\interno\wwwr...') #3 {main} thrown in c:\interno\wwwroot\aplica_64\comun\conn.php on line 27

Esta es mi conexion
// Base de datos
$vNombreSchema = 'WAA';
$vDBServer = "2.26.35.125";
/* $vDBUser = "Admin";
$vDBPassword = "pass"; */
$vDBUser = "user";
$vDBPassword = "passbd";

// LDAP Info
$domainName="prueba.com";
$ldapServer="2.26.35.125";
$con = new COM("ADODB.Connection");
$db_connstr = "DSN=odbc_base1;UID=user;PWD=passbd";
$con->open($db_connstr);


QUE PUEDE SER LLEVO SEMANAS CON ESTO AYUDAAAA
  #2 (permalink)  
Antiguo 04/10/2011, 16:06
Avatar de andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 9 meses
Puntos: 793
Respuesta: Error en pagina de php

Según la referencia de errores:

Cita:
The message file was found, but the file could not be opened because of permissions. Check the file permissions of the files under the message directory
Es un problema de permisos.

http://webdocs.caspur.it/ibm/udb-6.1/db2m0/sql10000.htm
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP
  #3 (permalink)  
Antiguo 04/10/2011, 16:16
Avatar de jodatelo  
Fecha de Ingreso: marzo-2010
Ubicación: Ecuador
Mensajes: 65
Antigüedad: 14 años
Puntos: 1
Respuesta: Error en pagina de php

Cita:
Iniciado por andresdzphp Ver Mensaje
Según la referencia de errores:



Es un problema de permisos.

[url]http://webdocs.caspur.it/ibm/udb-6.1/db2m0/sql10000.htm[/url]
ME DICEN ESTO

SQL10007N Message "<msgno>" could not be retrieved. Reason code: "<code>".

Explanation: The requested message <msgno> could not be retrieved from the message file. Reason code <code> is one of the following:


The environment variable "DB2INSTANCE" is either not set, or is set to an invalid instance. Correct it and try again.

The message file was found, but the file could not be opened because of permissions. Check the file permissions of the files under the message directory.

The message file could not be found. Either the file does not exist, or the directory the message file should be in does not exist. Check that a either a 'prime' directory (the default) or a directory with the same name as the 'LANG' environment variable exists under the message directory.

The requested message does not exist in the message file. Either the message file is outdated, or it is the wrong one.

LC_CTYPE is set to a locale which the database does not support. Correct it and try again.

An unexpected system error occurred. Try execution again. If problem persists, contact your IBM representative.

Not enough memory. An attempt to get private memory failed. Try again.
User Response: Reissue the command after verifying the following:


ensure that the DB2INSTANCE environment variable is set to the correct literal string for the username attempting this command

ensure that correct home directory is specified for the username attempting this command (i.e. in the /etc/passwd file)

ensure that the LANG environment variable is set to the correct value for the installed language, or is set to 'C' (defaults to whatever is in the 'prime' directory), on the username attempting this command
If all of the above are correct and the error still occurs, reinstall DB2.

QUE DEBO HACER?
  #4 (permalink)  
Antiguo 04/10/2011, 16:20
Avatar de andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 9 meses
Puntos: 793
Respuesta: Error en pagina de php

Mira esta referencia en español:

http://publib.boulder.ibm.com/infoce...2Fsql10007.htm

Seguro que te ayuda.

Saludos
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP

Etiquetas: db2, odbc
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:42.