Problemas con BDLINK
Hola,
tengo dos esquemas lqdesa y lqhrora0_h.
El segundo es un historico que debería poder ver tablas del primero, ambos son dos usuarios distintos.
tnsnames.ora
TQLQPPSS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.95.34.166)(PORT = 1560))
)
(CONNECT_DATA =
(SID = TQLQPPSS)
(SERVER = DEDICATED)
)
)
db_domain=world
db_name=TQLQPPSS
global_names=false
I connect to tqora_h y me creo un database link:
Create Public Database Link Tqlqppss.World@Lqora0_H
Connect To Tqora0_H
Identified By Maria
Using 'tqlqppss';
quiero acceder y me provoca el siguiente error;
SQL> select * from [email protected]@Lqora0_H;
select * from [email protected]@Lqora0_H
*
ERROR en línea 1:
ORA-00942: table or view does not exist
ORA-02063: preceding line from TQLQPPSS@LQORA0_H
ORA-02063: preceding 2 lines from TQLQPPSS@LQORA0_H
Estoy desesperada,
gracias
tengo dos esquemas lqdesa y lqhrora0_h.
El segundo es un historico que debería poder ver tablas del primero, ambos son dos usuarios distintos.
tnsnames.ora
TQLQPPSS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.95.34.166)(PORT = 1560))
)
(CONNECT_DATA =
(SID = TQLQPPSS)
(SERVER = DEDICATED)
)
)
db_domain=world
db_name=TQLQPPSS
global_names=false
I connect to tqora_h y me creo un database link:
Create Public Database Link Tqlqppss.World@Lqora0_H
Connect To Tqora0_H
Identified By Maria
Using 'tqlqppss';
quiero acceder y me provoca el siguiente error;
SQL> select * from [email protected]@Lqora0_H;
select * from [email protected]@Lqora0_H
*
ERROR en línea 1:
ORA-00942: table or view does not exist
ORA-02063: preceding line from TQLQPPSS@LQORA0_H
ORA-02063: preceding 2 lines from TQLQPPSS@LQORA0_H
Estoy desesperada,
gracias
http://www.wikioracle.es/doku.php?id=errores_oracle:oracle_8.1.7:ora:ora-06512
te has pasao de frenada.
Ponlo así
select * from empresas@Tqlqppss
O así
select * from [email protected]
Ponlo así
select * from empresas@Tqlqppss
O así
select * from [email protected]
También se probó:
SQL> select * from empresas@Tqlqppss
2 ;
select * from empresas@Tqlqppss
*
ERROR en línea 1:
ORA-02019: connection description for remote database not found
SQL> select * from [email protected];
select * from [email protected]
*
ERROR en línea 1:
ORA-02019: connection description for remote database not found
Si no le has creado un sinónimo a tu conexión debes entonces consultarla siguiendo esta estructura:
select campos from equema.tabla@dblink
select * from [email protected]
Reemplaza la palabra esquema por el propietario del objeto.
select campos from equema.tabla@dblink
select * from [email protected]
Reemplaza la palabra esquema por el propietario del objeto.