Précédent   Forum des professionnels en informatique > Bases de données > Oracle > PL/SQL
PL/SQL Forum d'entraide sur le PL/SQL
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 26/01/2005, 17h26   #1
Futur Membre du Club
 
Inscription : décembre 2004
Messages : 56
Détails du profil
Informations forums :
Inscription : décembre 2004
Messages : 56
Points : 18
Points : 18
Par défaut erreur pl/sql sur la récupération d'une page https://

Bonjour,

j'execute le code suivant
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FUNCTION get (lien varchar2) RETURN varchar2 IS
	pieces	utl_http.html_pieces;
	t_str	varchar(32200);
	walle_str varchar(32200):='/u02/oracle/ewallet.p12/';
	walle_pwd varchar(32200):=password';	
	i	int;
begin
	pieces := utl_http.request_pieces(url=>lien,wallet_path=>walle_str,wallet_password=>walle_pwd);
	for i in 1..pieces.count loop
		t_str:=t_str||pieces(i);
	end loop;
	return t_str;
exception
	when others then return sqlerrm;
end get;
lorque je l'execute l'erreure de type ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1665 ORA-29248: an unrecgonized WRL was used to open a wallet

que dois-je faire, merci pour votre aide
squalito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 17h34   #2
Expert Confirmé
 
Avatar de LeoAnderson
 
Inscription : septembre 2004
Messages : 2 942
Détails du profil
Informations forums :
Inscription : septembre 2004
Messages : 2 942
Points : 2 972
Points : 2 972
Tout d'abord, merci d'éditer votre post initial afin de lui donner un titre plus explicite qui vous assurera une meilleure lisibilité, et donc, plus de chances d'être résolu !

Sinon, il serait souhaitable que vous postiez le code (simplifié au maximum) qui provoque l'erreur ainsi que l'URL utilisée pour les tests, afin que l'on puisse se placer dans le même contexte que vous.
LeoAnderson est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 17h36   #3
Rédacteur
 
Avatar de bouyao
 
Inscription : janvier 2005
Messages : 1 778
Détails du profil
Informations forums :
Inscription : janvier 2005
Messages : 1 778
Points : 1 857
Points : 1 857
Probleme de Proxy

pour acceder au sites externes, vous devez donner des informations sur le serveur proxy

1. Cliker sur Edit Attribute de Application

2. Sur Application Definition -> Proxy Server , Entrer l'information sur le serveur proxy,

3. Appliquer les modifications
bouyao est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 17h44   #4
Futur Membre du Club
 
Inscription : décembre 2004
Messages : 56
Détails du profil
Informations forums :
Inscription : décembre 2004
Messages : 56
Points : 18
Points : 18
l'erreur devient

ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1665 ORA-12541: TNS:no listener
squalito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 18h06   #5
Rédacteur
 
Avatar de bouyao
 
Inscription : janvier 2005
Messages : 1 778
Détails du profil
Informations forums :
Inscription : janvier 2005
Messages : 1 778
Points : 1 857
Points : 1 857
est il possible de donner le message complet de l'erreur ?
bouyao est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 18h20   #6
Expert Confirmé
 
Avatar de LeoAnderson
 
Inscription : septembre 2004
Messages : 2 942
Détails du profil
Informations forums :
Inscription : septembre 2004
Messages : 2 942
Points : 2 972
Points : 2 972
Avez-vous configuré votre Wallet Manager et importé les certificats nécessaires ?
http://download-west.oracle.com/docs...et.htm#1006487
LeoAnderson est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 18h55   #7
Futur Membre du Club
 
Inscription : décembre 2004
Messages : 56
Détails du profil
Informations forums :
Inscription : décembre 2004
Messages : 56
Points : 18
Points : 18
le message est complet, mais avez vous une exemple de source
qui fonctionne permettant la récupération du contenu d'une page web avec
un appel de type https://
squalito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 19h11   #8
Rédacteur
 
Avatar de bouyao
 
Inscription : janvier 2005
Messages : 1 778
Détails du profil
Informations forums :
Inscription : janvier 2005
Messages : 1 778
Points : 1 857
Points : 1 857
pour que ça marche il faut Wallet Manager V3.0 pour oracle 9i
si vous avez V2.1 ces' normal que ça marche pas.
bouyao est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 19h17   #9
Futur Membre du Club
 
Inscription : décembre 2004
Messages : 56
Détails du profil
Informations forums :
Inscription : décembre 2004
Messages : 56
Points : 18
Points : 18
j'ai donc la bonne version mais il me met l'erreure suivante
à l'execution du programme ci-dessus

Code :
ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1665 ORA-28871: certificate chain IS incomplete
Aider moi car je ne comprends plus rien.
squalito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 19h35   #10
Rédacteur
 
Avatar de bouyao
 
Inscription : janvier 2005
Messages : 1 778
Détails du profil
Informations forums :
Inscription : janvier 2005
Messages : 1 778
Points : 1 857
Points : 1 857
problème de certificat

ici la note d'oracle : sinon voir : Note:169768.1 su metalink

1. connect to https://<webaddress URL> : note that if we can't do this via the browser there is no point trying to do this within the database. [where <webaddress URL> is the site we wish to access]

2. Obtain the correct certificate from the site that we are connecting to :- a) Select File from the menu bar and select Properties.
b) The Properties dialog box has a Certificates button. Click this.
c) The Certificate dialog box has a Certification Path tab. Click this
d) In the Certification path box. Notice that multiple certifcates. Highlight the top most certifcate. (i.e. VerSign/RSA Secure Server CA). Then notice the View Certificate button is active. Click this.
e) Another Certificate dialog box appears, which also has a Details tab. Click this.
f) The Details tab has a "Copy to File..." button. Click this.
g) The Certificate manager Export Wizard appears. Click the Next button.
h) This screen is the Certificate Export File screen. From the radio buttons, select the "Base64 encoded" option and click Next.
i) At this screen, enter the filename and click Next.
j) The "Completing the Certificate Manager Export Wizard" screen contains a summary of information. Simply click the Finish button and a dialog box should appear to say the export was completed successfully. Make a note of where this file has been saved.

3. Configure Wallet Manager for this certificate The wallet manager GUI interface can be launched as follows :-

UNIX: Enter owm at the command line. [requires that the DISPLAY environment variable is set correctly, i.e. the same settings that would allow the Oracle Installer to launch]

Windows NT:- V816-V817 : Press Start>ORACLE_HOME>Network Administration>Wallet Manager V901 : Press Start>ORACLE_HOME>Integrated Management Tools>Wallet Manager

a) start the wallet manager
b) go to 'wallet' tab and click on NEW
c) provide a password for this wallet e.g orcl [for V901x we need password to be >7 characters and alphanumeric], when prompted on creating a client certificate choose NO
d) go to the 'operations' tab and click on 'Import Trusted Certificate', choose the option to select a file that contains the certificate
e) find the certificate that was saved from step 2h and click on OPEN. Notice that in wallet manager we can see that the 'trusted certificates' list has been updated and that we can see the credentials of the certificate on the RHS of the screen.
f) go to the 'wallet' tab and click on 'Save As', provide a location where you wish to save file information stored in this wallet
bouyao est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2005, 19h48   #11
Futur Membre du Club
 
Inscription : décembre 2004
Messages : 56
Détails du profil
Informations forums :
Inscription : décembre 2004
Messages : 56
Points : 18
Points : 18
pourquoi me met-il le message suivant
certificate chain is incomplete même si c'est un site
distant
exemple https://www.tucmuche.com
Y a t-il un autre moyen pour récupérer le contenu d'une page sécurisé distante.
squalito est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 23h55.


 
 
 
 
Partenaires

Hébergement Web