IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

PL/SQL Oracle Discussion :

erreur pl/sql sur la récupération d'une page https://


Sujet :

PL/SQL Oracle

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    56
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 56
    Points : 49
    Points
    49
    Par défaut erreur pl/sql sur la récupération d'une page https://
    Bonjour,

    j'execute le code suivant
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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

  2. #2
    Membre expert
    Avatar de LeoAnderson
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 2 938
    Points : 3 199
    Points
    3 199
    Par défaut
    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.

  3. #3
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    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

  4. #4
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    56
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 56
    Points : 49
    Points
    49
    Par défaut
    l'erreur devient

    ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1665 ORA-12541: TNS:no listener

  5. #5
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    est il possible de donner le message complet de l'erreur ?

  6. #6
    Membre expert
    Avatar de LeoAnderson
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 2 938
    Points : 3 199
    Points
    3 199
    Par défaut
    Avez-vous configuré votre Wallet Manager et importé les certificats nécessaires ?
    http://download-west.oracle.com/docs...et.htm#1006487

  7. #7
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    56
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 56
    Points : 49
    Points
    49
    Par défaut
    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://

  8. #8
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    pour que ça marche il faut Wallet Manager V3.0 pour oracle 9i
    si vous avez V2.1 ces' normal que ça marche pas.

  9. #9
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    56
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 56
    Points : 49
    Points
    49
    Par défaut
    j'ai donc la bonne version mais il me met l'erreure suivante
    à l'execution du programme ci-dessus

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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.

  10. #10
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    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

  11. #11
    Membre du Club
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    56
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 56
    Points : 49
    Points
    49
    Par défaut
    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.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 4
    Dernier message: 07/01/2014, 04h19
  2. SQL sur le resultat d'une autre requete SQL
    Par skillipo dans le forum Requêtes et SQL.
    Réponses: 1
    Dernier message: 06/12/2007, 16h45
  3. Réponses: 3
    Dernier message: 11/01/2006, 18h35
  4. petite question sur la récupération d'une variable
    Par minusette dans le forum Langage
    Réponses: 6
    Dernier message: 17/11/2005, 16h57
  5. Erreur de syntaxe sur la création d'une vue.
    Par cgougeon dans le forum Installation
    Réponses: 3
    Dernier message: 09/09/2005, 11h00

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo