Executing an Oracle stored procedure with a output parameter of an array of complex type using PHP oci driverPreferred method to store PHP arrays (json_encode vs serialize)Execute stored procedure with an Output parameter?ORA-06550, PLS-00306; Error inserting data to Oracle procedureIs it possible to call stored Procedure from .net application passing list of Array of string or integer as parameterHow to call package from php having procedure in oracle using oci drivers?How to pass an array into a SQL Server stored procedureORACLE Stored Procedure in PHP processingHow to call stored procedure with parameter type AnyData?ORA-06502: PL/SQL: numeric or value error: character string buffer too small - Executing using OCI interfaceoci_execute(): ORA-06550: PLS-00306: wrong number or types of arguments

Scam? Checks via Email

Why were contact sensors put on three of the Lunar Module's four legs? Did they ever bend and stick out sideways?

How should I quote American English speakers in a British English essay?

Is it unprofessional to mention your cover letter and resume are best viewed in Chrome?

GNU sort stable sort when sort does not know sort order

Tikzpicture doesn't display correctly

Summoning A Technology Based Demon

What is the German equivalent of the proverb 水清ければ魚棲まず (if the water is clear, fish won't live there)?

Piece of chess engine, which accomplishes move generation

Why was the LRV's speed gauge displaying metric units?

Why is my fluorescent tube orange on one side, white on the other and dark in the middle?

Why would a personal invisible shield be necessary?

Complaints from (junior) developers against solution architects: how can we show the benefits of our work and improve relationships?

How does a poisoned arrow combine with the spell Conjure Barrage?

Just how much information should you share with a former client?

Why put copper in between battery contacts and clamps?

Move DB/LOG files - Detach/Attach - Problem

GNU GPL V3 with no code change disclosure

Rampant sharing of authorship among colleagues in the name of "collaboration". Is not taking part in it a death knell for a future in academia?

How can Paypal know my card is being used in another account?

Why did I lose on time with 3 pawns vs Knight. Shouldn't it be a draw?

Why force the nose of 737 Max down in the first place?

What are the cons of stateless password generators?

Is there an antonym(a complementary antonym) for "spicy" or "hot" regarding food (I DO NOT mean "seasoned" but "hot")?



Executing an Oracle stored procedure with a output parameter of an array of complex type using PHP oci driver


Preferred method to store PHP arrays (json_encode vs serialize)Execute stored procedure with an Output parameter?ORA-06550, PLS-00306; Error inserting data to Oracle procedureIs it possible to call stored Procedure from .net application passing list of Array of string or integer as parameterHow to call package from php having procedure in oracle using oci drivers?How to pass an array into a SQL Server stored procedureORACLE Stored Procedure in PHP processingHow to call stored procedure with parameter type AnyData?ORA-06502: PL/SQL: numeric or value error: character string buffer too small - Executing using OCI interfaceoci_execute(): ORA-06550: PLS-00306: wrong number or types of arguments






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have an Oracle procedure



create or replace PROCEDURE PREVISAO_CHEGADA(PONTO IN number, LINHA IN number, ROTA IN number, RETORNO OUT POSICAO_ONIBUS_TAB) IS ...


where out parameter POSICAO_ONIBUS_TAB is an array of POSICAO_ONIBUS
and POSICAO_ONIBUS is



create or replace TYPE POSICAO_ONIBUS AS OBJECT (LOGP_CODIGO NUMBER, VEIC_CODIGO NUMBER, PROX_VIAG VARCHAR2(5), distancia NUMBER);


I need to call this procedure with PHP, but I'm getting the error:



oci_execute(): ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PREVISAO_CHEGADA' ORA-06550: line 1, column 7: PL/SQL: Statement ignored



follows PHP code below:



$db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA=(SID=mydb)))";
$conn = oci_connect("user", "password", $db, 'WE8ISO8859P1');
$sql = 'BEGIN previsao_chegada(:ponto, :linha, :rota, :retornos); END;';
$stmt = oci_parse($conn,$sql);
oci_bind_by_name($stmt,':ponto',$ponto,10);
oci_bind_by_name($stmt,':linha',$linha,10);
oci_bind_by_name($stmt,':rota',$rota,10);
oci_bind_array_by_name($stmt,':retornos',$retornos, 100, 100, SQLT_CHR);

$ponto = 391;
$linha = 280;
$rota = 0;
$retornos = array();

oci_execute($stmt);









share|improve this question






























    0















    I have an Oracle procedure



    create or replace PROCEDURE PREVISAO_CHEGADA(PONTO IN number, LINHA IN number, ROTA IN number, RETORNO OUT POSICAO_ONIBUS_TAB) IS ...


    where out parameter POSICAO_ONIBUS_TAB is an array of POSICAO_ONIBUS
    and POSICAO_ONIBUS is



    create or replace TYPE POSICAO_ONIBUS AS OBJECT (LOGP_CODIGO NUMBER, VEIC_CODIGO NUMBER, PROX_VIAG VARCHAR2(5), distancia NUMBER);


    I need to call this procedure with PHP, but I'm getting the error:



    oci_execute(): ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PREVISAO_CHEGADA' ORA-06550: line 1, column 7: PL/SQL: Statement ignored



    follows PHP code below:



    $db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA=(SID=mydb)))";
    $conn = oci_connect("user", "password", $db, 'WE8ISO8859P1');
    $sql = 'BEGIN previsao_chegada(:ponto, :linha, :rota, :retornos); END;';
    $stmt = oci_parse($conn,$sql);
    oci_bind_by_name($stmt,':ponto',$ponto,10);
    oci_bind_by_name($stmt,':linha',$linha,10);
    oci_bind_by_name($stmt,':rota',$rota,10);
    oci_bind_array_by_name($stmt,':retornos',$retornos, 100, 100, SQLT_CHR);

    $ponto = 391;
    $linha = 280;
    $rota = 0;
    $retornos = array();

    oci_execute($stmt);









    share|improve this question


























      0












      0








      0








      I have an Oracle procedure



      create or replace PROCEDURE PREVISAO_CHEGADA(PONTO IN number, LINHA IN number, ROTA IN number, RETORNO OUT POSICAO_ONIBUS_TAB) IS ...


      where out parameter POSICAO_ONIBUS_TAB is an array of POSICAO_ONIBUS
      and POSICAO_ONIBUS is



      create or replace TYPE POSICAO_ONIBUS AS OBJECT (LOGP_CODIGO NUMBER, VEIC_CODIGO NUMBER, PROX_VIAG VARCHAR2(5), distancia NUMBER);


      I need to call this procedure with PHP, but I'm getting the error:



      oci_execute(): ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PREVISAO_CHEGADA' ORA-06550: line 1, column 7: PL/SQL: Statement ignored



      follows PHP code below:



      $db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA=(SID=mydb)))";
      $conn = oci_connect("user", "password", $db, 'WE8ISO8859P1');
      $sql = 'BEGIN previsao_chegada(:ponto, :linha, :rota, :retornos); END;';
      $stmt = oci_parse($conn,$sql);
      oci_bind_by_name($stmt,':ponto',$ponto,10);
      oci_bind_by_name($stmt,':linha',$linha,10);
      oci_bind_by_name($stmt,':rota',$rota,10);
      oci_bind_array_by_name($stmt,':retornos',$retornos, 100, 100, SQLT_CHR);

      $ponto = 391;
      $linha = 280;
      $rota = 0;
      $retornos = array();

      oci_execute($stmt);









      share|improve this question














      I have an Oracle procedure



      create or replace PROCEDURE PREVISAO_CHEGADA(PONTO IN number, LINHA IN number, ROTA IN number, RETORNO OUT POSICAO_ONIBUS_TAB) IS ...


      where out parameter POSICAO_ONIBUS_TAB is an array of POSICAO_ONIBUS
      and POSICAO_ONIBUS is



      create or replace TYPE POSICAO_ONIBUS AS OBJECT (LOGP_CODIGO NUMBER, VEIC_CODIGO NUMBER, PROX_VIAG VARCHAR2(5), distancia NUMBER);


      I need to call this procedure with PHP, but I'm getting the error:



      oci_execute(): ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PREVISAO_CHEGADA' ORA-06550: line 1, column 7: PL/SQL: Statement ignored



      follows PHP code below:



      $db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA=(SID=mydb)))";
      $conn = oci_connect("user", "password", $db, 'WE8ISO8859P1');
      $sql = 'BEGIN previsao_chegada(:ponto, :linha, :rota, :retornos); END;';
      $stmt = oci_parse($conn,$sql);
      oci_bind_by_name($stmt,':ponto',$ponto,10);
      oci_bind_by_name($stmt,':linha',$linha,10);
      oci_bind_by_name($stmt,':rota',$rota,10);
      oci_bind_array_by_name($stmt,':retornos',$retornos, 100, 100, SQLT_CHR);

      $ponto = 391;
      $linha = 280;
      $rota = 0;
      $retornos = array();

      oci_execute($stmt);






      php oracle stored-procedures out-parameters






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 20:28









      Gustavo de FreitasGustavo de Freitas

      176 bronze badges




      176 bronze badges

























          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55365712%2fexecuting-an-oracle-stored-procedure-with-a-output-parameter-of-an-array-of-comp%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55365712%2fexecuting-an-oracle-stored-procedure-with-a-output-parameter-of-an-array-of-comp%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현