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;
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
add a comment |
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
add a comment |
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
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
php oracle stored-procedures out-parameters
asked Mar 26 at 20:28
Gustavo de FreitasGustavo de Freitas
176 bronze badges
176 bronze badges
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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