Problem binding variable to query in procedure

Hi folks,
I'm having an issue binding a variable to a query.  For example the following works in my procedure;
DECLARE V_PLANT NVARCHAR(4) := 'ACME';
tempVar = select field1 from myView where Plant = :V_PLANT;
When I debug my procedure I can see the variable V_PLANT = 'ACME' and tempVar contains 1 single value (field1) record.
Now, alternatively, if I try passing my variable like this it is not working (get error: no data found);
DECLARE V_PLANT NVARCHAR(4) := 'ACME';
ABCVariable NVARCHAR(45) := '';
select field1 into ABCVariable from myView where Plant = :V_PLANT;
However if I hard code the plant variable as a literal string like this I indeed get data;
DECLARE V_PLANT NVARCHAR(4) := 'ACME';
ABCVariable NVARCHAR(45) := '';
select field1 into newVariable from myView where Plant = 'ACME';
Result is I have a value of 'ACME' in ABCVariable.  It seems when I'm using SELECT INTO syntax I can no longer use variables in the where condition.
Any suggestions?
Thanks,
-Patrick

Hi Patrick
I cannot reproduce this problem:
create procedure get_article_by_label (IN v_article_label varchar)
language sqlscript
as
begin
    declare v_article_id integer := -1;
    select max(article_id) into v_article_id
    from efashion.article_lookup
    where UPPER(article_label) like '%' || UPPER(:v_article_label) || '%';
    select * from efashion.article_lookup
    where article_id = :v_article_id;
end;
call get_article_by_label ('Leather Belt');
ARTICLE_ID  ARTICLE_LABEL           CATEGORY            SALE_PRICE  FAMILY_NAME FAMILY_CODE
143848      Patchwork Leather Belt  Belts,bags,wallets  88.9        Accessories F60       
As you see I use the input variable in the WHERE condition, and reuse the found ID to select data again.
Not sure though, why it doesn't work in your case.
Is the target variable in your working example also ABCVariable or indeed newVariable?
- Lars

Similar Messages

  • How to use bind variables in "query result" "validation rule"

    I have created a validation rule on my entity object. rules=compareValidator attribute=InvoiceNumber operator=NotEquals queryResult=SELECT ...
    In this query, I would like to reference entity attributes from the current instance of the entity when the value fires, for example SELECT invoice_number where invoice_id != :invoiceId
    How can I reference a bind variable inside the query result compare validator validation rule?
    THanks,
    Jerry.

    bump

  • How to assign sessionscope variable to the bind variable in Query of VO

    Hi all,
    I want to know how to assign a sessionscope variable in the binvariable of Query in VO
    My sessionscope variable holds the value of currently selected column in the table. eg:empname of the currently selected column which is in empdetails table...
    I want display the schemes available for the selected employee in the next table..The schemes are in another table named empschemes which has the empname and empschemes as column
    I have created a vo for empschemes table with bind variable 'scheme_bind'..I need to set the sessionscope variable '#{sessionScope.empname}" to the bind variable.
    Its urgent,..Pls do reply asap
    Thanks in advance
    Nasrin

    HI,
    You can use
    adf.context.sessionScope.get("YourSessionVariable")this code for assigning VO's bind variable value.write this code where you create bind variable and do not forget click on expression radio button.
    Rafat

  • Bind variables in query

    Hi,
    I have a query that is taking up so much memory of the shared pool that I get this Oracle error message: ORA-04031: unable to allocate 1120 bytes of shared memory ("shared pool","SELECT DECODE(NULL,NULL,'Sta...","sql area","strdef & evalk : evalks")
    From reading on asktom, I understand that I need to check for bind variables in my SQL statement, as these are the main cause of poor performance. I'm not sure how to correct my SQL statement. I thought I was already using bind variables. Here's my code:
    DECLARE
       q VARCHAR2(32767);
    BEGIN
    q:='SELECT '||
    'DECODE(NULL,NULL,''Station to Station'') as col1, '||
    'sum(s_to_s_norm) as col2, '||
    'sum(s_to_s_pre) as col3,  '||
    'sum(s_to_s_norm)+sum(s_to_s_pre) as col4, '||
    'sum(s_to_s_busy) as col5, '||
    'sum(s_to_s_LT) as col6, '||
    'sum(s_to_s_GT) as col7, '||
    'sum(s_to_s_busy)+sum(s_to_s_LT)+sum(s_to_s_GT) as col8, '||
    'sum(s_to_s_norm)+sum(s_to_s_pre)+sum(s_to_s_busy)+sum(s_to_s_LT)'||
    '+sum(s_to_s_GT) as col9, '||
    'DECODE(NULL,NULL,1) as col10 '||
    'FROM traffic_sum_view '||
    'WHERE TO_DATE('||:SORTFIELD||') '||
    'BETWEEN TO_DATE(substr(:STARTDATE,1,19),''dd-MON-YYYY hh24:mi'') '||
    'AND TO_DATE(substr(:STOPDATE,1,19),''dd-MON-YYYY hh24:mi'') '||
    'AND switch_id = ''' ||:P1_SWITCH_ID|| ''';';
    return q;
    end;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    I have a query that is taking up so much memory of
    the shared pool that I get this Oracle error message:
    ORA-04031: unable to allocate 1120 bytes of shared
    memory ("shared pool","SELECT
    DECODE(NULL,NULL,'Sta...","sql area","strdef & evalk
    : evalks")
    From reading on asktom, I understand that I need to
    check for bind variables in my SQL statement, as
    these are the main cause of poor performance. I'm
    not sure how to correct my SQL statement. I thought
    I was already using bind variables. Here's my code:
    DECLARE
    q VARCHAR2(32767);
    IN
    q:='SELECT '||
    'DECODE(NULL,NULL,''Station to Station'') as col1,
    '||
    'sum(s_to_s_norm) as col2, '||
    'sum(s_to_s_pre) as col3,  '||
    'sum(s_to_s_norm)+sum(s_to_s_pre) as col4, '||
    'sum(s_to_s_busy) as col5, '||
    'sum(s_to_s_LT) as col6, '||
    'sum(s_to_s_GT) as col7, '||
    'sum(s_to_s_busy)+sum(s_to_s_LT)+sum(s_to_s_GT) as
    col8, '||
    'sum(s_to_s_norm)+sum(s_to_s_pre)+sum(s_to_s_busy)+sum
    (s_to_s_LT)'||
    '+sum(s_to_s_GT) as col9, '||
    'DECODE(NULL,NULL,1) as col10 '||
    'FROM traffic_sum_view '||
    'WHERE TO_DATE('||:SORTFIELD||') '||
    'BETWEEN
    TO_DATE(substr(:STARTDATE,1,19),''dd-MON-YYYY
    hh24:mi'') '||
    'AND TO_DATE(substr(:STOPDATE,1,19),''dd-MON-YYYY
    hh24:mi'') '||
    'AND switch_id = ''' ||:P1_SWITCH_ID|| ''';';
    return q;
    end;Bind variables are ENCOURAGED in SQL Selects!! They allow the database to reuse your query as apposed to recompiling the code each time.. Where on AskTom did you see a statement advising against Bind Variables??
    Thank you,
    Tony Miller
    UTMB/EHN

  • Problem with Variable in Query Designer.

    hi all,
    we have a variable ZAMREG on characteristic AM Region, where AM region is attribute for two different master data objects mastobj1 and mastobj2, we have different infosets build on these two master data objects along with some other ODS.
    now this variable ZAMREG is visible in one of the infosets only in query designer, whereas it is not visible in the other infoset.
    what could be the problem??
    thanks,
    Rk

    Hi,
    Please check if that variable is created locally or globally. If it is a local variable in any query, it will not appear in any other query.
    In anyways, you can always create one more variable if the older one is not available. This will not make much of difference. I would suggest go ahead with creating a new variable.
    Regards,
    Yogesh

  • Problems with variables in query

    I need add variable to my query, made in query generator. My query is long...doesn't work.
    I read a possible solution for this: declare variable and then use it. For example:
    Declare @FromDate as DateTime
    Declare @ToDate as DateTime
    set FromDate =  '[%0]'
    set ToDate =  '[%1]'
    and then implements it: select * from  [table] where Date between @FromDate and @ToDate
    ...but doesn't work.
    Any suggestions?
    Roberto.
    PD: I left my query:
    declare @fdesde as datetime
    declare @fhasta as datetime
    set @fdesde = '[%0]'
    set @fhasta = '[%1]'
    select * from (SELECT
    A.DOCENTRY as NroDocumento,
    max(A.DOCDATE) AS FECHA,
    max(CASE WHEN A.U_TGV_FLETTER = 'A' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '1'
    WHEN A.U_TGV_FLETTER = 'B' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '6'
    WHEN A.U_TGV_FLETTER = 'C' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '11'
    WHEN A.U_TGV_FLETTER = 'E' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '19'
    WHEN A.U_TGV_FLETTER = 'M' AND A.U_TGV_ACC_ORD_FLAC <> 1 THEN '51'
    WHEN A.U_TGV_FLETTER = 'A' AND A.U_TGV_ACC_ORD_FLAC = 1 THEN '60'
    WHEN A.U_TGV_FLETTER = 'B' AND A.U_TGV_ACC_ORD_FLAC = 1 THEN '61'
    WHEN A.U_TGV_FLETTER = 'C' AND A.U_TGV_ACC_ORD_FLAC = 1 THEN '62' ELSE 'NA'
    END) AS TIPOCOMP,
    max(isnull(Convert(varchar,isnull(A.U_TGV_FOLIO_PREFIX,'0')) + '-' + Convert(varchar,A.folionum),'')) AS NUMCOMP,
    max(isnull(A.CARDNAME, '')) AS RAZONSOCIAL,
    max(Replace(LICTRADNUM,'-','')) AS CUIT,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then 0 else case when b.vatprcnt = 0 then b.linetotal else 0 end end), 4) as NOGRAVEXCENTO,
    round(sum(case when b.vatprcnt <> 0 then b.linetotal else 0 end),4) as IMPGRAVADO,
    max(b.vatprcnt) as ALICUOTA,
    round(sum(b.vatsum),4) as IVA,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then b.linetotal else 0 end),4) as OPEXENTA,
    max(round(ISNULL(AA.TOTAL, 0),4)) AS PERCIVA,
    max(round(ISNULL(BB.TOTAL, 0),4)) AS PERCIIBB,
    '1' AS CONSULTA
    FROM [dbo].[OPCH]  A
    INNER JOIN [dbo].[PCH1]  B ON A.DOCENTRY = B.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 1
                                       group by A.DOCENTRY) AA ON AA.DOCENTRY = A.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 2
                                       group by A.DOCENTRY) BB ON BB.DOCENTRY = A.DOCENTRY
    INNER JOIN [dbo].[OITM] I on  b.ItemCode = I.ItemCode
    Where I.U_TGV_PERCEP_FLAG = 0
    group by a.DOCENTRY,  b.taxcode
    UNION ALL
    SELECT
    A.DOCENTRY as NroDocumento,
    max(A.DOCDATE) AS FECHA,
    max(CASE WHEN A.U_TGV_FLETTER = 'A' THEN '3'
    WHEN A.U_TGV_FLETTER = 'B' THEN '8'
    WHEN A.U_TGV_FLETTER = 'C' THEN '13'
    WHEN A.U_TGV_FLETTER = 'M' THEN '53'
    ELSE 'NA'
    END) AS TIPOCOMP,
    max(isnull(Convert(varchar,isnull(A.U_TGV_FOLIO_PREFIX,'0')) + '-' + Convert(varchar,A.folionum),'')) AS NUMCOMP,
    max(isnull(A.CARDNAME, '')) AS RAZONSOCIAL,
    max(Replace(LICTRADNUM,'-','')) AS CUIT,
    round(sum(case when b.vatprcnt = 0 then b.linetotal else 0 end), 4) as NOGRAVEXCENTO,
    round(sum(case when b.vatprcnt <> 0 then b.linetotal else 0 end),4) as IMPGRAVADO,
    max(b.vatprcnt) as ALICUOTA,
    round(sum(b.vatsum),4) as IVA,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then b.linetotal else 0 end),4) as OPEXENTA,
    max(round(ISNULL(AA.TOTAL, 0),4)) AS PERCIVA,
    max(round(ISNULL(BB.TOTAL, 0),4)) AS PERCIIBB,
    '1' AS CONSULTA
    FROM [dbo].[ORPC] A
    INNER JOIN [dbo].[RPC1] B ON A.DOCENTRY = B.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 1
                                       group by A.DOCENTRY) AA ON AA.DOCENTRY = A.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 2
                                       group by A.DOCENTRY) BB ON BB.DOCENTRY = A.DOCENTRY
    INNER JOIN [dbo].[OITM] I on  b.ItemCode = I.ItemCode
    Where I.U_TGV_PERCEP_FLAG = 0
    group by a.DOCENTRY,  b.taxcode
    UNION ALL
    SELECT max(TOT.C1) as NroDocumento,max(TOT.C2) as Fecha, max(TOT.C3), max(TOT.C4), max(TOT.C5),max(TOT.C6),sum(TOT.NOGRAVEXCENTO),sum(TOT.IMPGRAVADO),max(TOT.ALICUOTA),sum(TOT.IVA),sum(TOT.OPEXENTA),max(TOT.PERCIVA),max(TOT.PERCIIBB),max(TOT.CONSULTA) FROM
    SELECT
    '' AS C1,
    '' AS C2,
    '' AS C3,
    '' AS C4,
    '' AS C5,
    '' AS C6,
    round(sum(case when b.vatprcnt = 0 then b.linetotal else 0 end), 4) as NOGRAVEXCENTO,
    round(sum(case when b.vatprcnt <> 0 then b.linetotal else 0 end),4) as IMPGRAVADO,
    max(b.vatprcnt) as ALICUOTA,
    round(sum(b.vatsum),4) as IVA,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then b.linetotal else 0 end),4) as OPEXENTA,
    max(round(ISNULL(AA.TOTAL, 0),4)) AS PERCIVA,
    max(round(ISNULL(BB.TOTAL, 0),4)) AS PERCIIBB,
    '2' AS CONSULTA
    FROM [dbo].[OPCH] A
    INNER JOIN [dbo].[PCH1] B ON A.DOCENTRY = B.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 1
                                       group by A.DOCENTRY) AA ON AA.DOCENTRY = A.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 2
                                       group by A.DOCENTRY) BB ON BB.DOCENTRY = A.DOCENTRY
    INNER JOIN [dbo].[OITM] I on  b.ItemCode = I.ItemCode
    Where I.U_TGV_PERCEP_FLAG = 0
    group by b.taxcode
    UNION ALL
    SELECT
    '' AS C1,
    '' AS C2,
    '' AS C3,
    '' AS C4,
    '' AS C5,
    '' AS C6,
    round(sum(case when b.vatprcnt = 0 then b.linetotal else 0 end), 4) as NOGRAVEXCENTO,
    round(sum(case when b.vatprcnt <> 0 then b.linetotal else 0 end),4) as IMPGRAVADO,
    max(b.vatprcnt) as ALICUOTA,
    round(sum(b.vatsum),4) as IVA,
    round(sum(case when a.U_TGV_TVAT_POS_BP = 'EX' then b.linetotal else 0 end),4) as OPEXENTA,
    max(round(ISNULL(AA.TOTAL, 0),4)) AS PERCIVA,
    max(round(ISNULL(BB.TOTAL, 0),4)) AS PERCIIBB,
    '2' AS CONSULTA
    FROM [dbo].[ORPC] A
    INNER JOIN RPC1 AS B ON A.DOCENTRY = B.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 1
                                       group by A.DOCENTRY) AA ON AA.DOCENTRY = A.DOCENTRY
    LEFT JOIN (SELECT A.DOCENTRY, SUM(A.LINETOTAL) AS TOTAL FROM [dbo].[PCH1] A
                                       INNER JOIN [dbo].[OITM] B ON A.ITEMCODE = B.ITEMCODE
                                       INNER JOIN [dbo].[OWHT] C ON B.ITEMCODE = C.U_TGV_CODE_ITEM
                                       WHERE U_TGV_PERCEP_FLAG = 1 AND U_TGV_PERC_TYPE = 2
                                       group by A.DOCENTRY) BB ON BB.DOCENTRY = A.DOCENTRY
    INNER JOIN [dbo].[OITM] I on  b.ItemCode = I.ItemCode
    Where I.U_TGV_PERCEP_FLAG = 0
    group by b.taxcode
    ) TOT
    group by TOT.ALICUOTA) TOTGEN
    where TOTGEN.FECHA between @fdesde  and @fhasta
    order by TOTGEN.fecha

    Hi Roberto,
    Try the following:
    DECLARE @cnt AS SMALLINT, @DateFrom AS DATETIME , @DateTo AS DATETIME 
    SELECT @cnt = count(*) FROM [dbo].[OINV] T0 WHERE T0.DocDate = '[%0]'
    SELECT @cnt = count(*) FROM [dbo].[OINV] T1 WHERE T1.DocDate = '[%1]'
    SET @DateFrom = '[%0]'
    SET @DateTo = '[%1]'
    IF @DateTo = '1900-01-01'
    BEGIN
    SET @DateTo = '2999-12-31'
    END
    SELECT DocNum, DocDate, CardCode, DocTotal 
    FROM dbo.[OINV]
    WHERE DocDate >= @DateFrom AND DocDate <= @DateTo
    ORDER BY DocNum
    FOR BROWSE
    The @cnt variable is only used as a mechanism to get the user values into the SAP parameter variables, which are then assigned to @DateFrom and @DateTo.
    If the user does not enter any parameter values then SAP automatically assigns a value of '1900-01-01', which is fine for DateFrom but not DateTo - so if @DateTo equals this then I assign some future date so all transactions should be returned.
    Hope this helps.
    Regards,
    Andrew.

  • How to pass a value to a bind variable in a query report in oracle apex

    Hi Guys,
    I have requirement to send weekly reports via email to some users. The users should receive their own records in the report. The user details is stored in a table. What I am planning to do is to create a report query in oracle apex to generate the report and then run a function/procedure via a scheduler to email the report to respective users. Now my query is ............. is it possible to pass a value (user name) to the report query to pull records of only that user? I know we can have bind variables in the report query but I have no idea how to pass a value for bind variables from a function/procedure.
    Can anyone help me on this issue or suggest a better approach?
    Thanks,
    San

    You need to use dynamic sql
    But please keep in mind that since you're using Oracle you may be better off posting this in some Oracle forums
    This forum is specifically for SQL Server
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to use SYSDATE as a default value of a bind variable in a query report?

    Hi,
    I want to use SYSDATE as default value for a bind variable in Query based report.
    I don't see any way to do it, someone helps?
    Thanks a lot.
    Paulo.

    You can aslo use #sysdate directly.
    Hi,
    The way I'm doing in my report is, I have a database function (f_ret_sysdate) with the following code
    create function f_ret_sysdate return varchar2
    begin
    return to_char(sysdate,'mm/dd/yyyy');
    end;
    Now, in the 'Customization Form Display Options' section of the report I'm calling this function as #f_ret_sysdate in the default value field of corresponding bind variable to display SYSDATE with the format.
    Hope this helps!...
    -Krishnamurthy

  • ORA-01006 Using Bind Variables In A Dynamic SQL Contains Query

    I have the following dynamic SQL query :-
    declare
    TYPE typ_sql IS REF CURSOR;
    ltyp_sql typ_sql;
    lv_sql VARCHAR2(100);
    begin
    lv_sql := 'SELECT arx_id FROM arx WHERE CONTAINS ';
    lv_sql := lv_sql || (arx_full,''(:b1) WITHIN ui'') > 0';
    open ltyp_sql FOR v_sql USING ln_id;
    fetch ......
    close ......
    end;
    When the code tries to open the cursor it gives the above error. I presume it is the way Oracle is expanding the bind variable but I cannot find anything in the docs to say why this is happening or whether you can do this or not using bind variables ( CONTAINS query ). Any help would be appreciated, thanks,
    Stuart.

    lv_sql || '(arx_full, :b1 || '' within ui'') > 0';

  • Bind variable inside a package

    Can we declare a bind variable inside a package specification?
    CREATE OR REPLACE PACKAGE GET_EMPLOYEEDETAILS
    IS
    PROCEDURE GET_FIRSTNAME(E_ID IN EMPLOYEES.EMPLOYEE_ID%TYPE, F_NAME OUT EMPLOYEES.FIRST_NAME%TYPE);
    VARIABLE O VARCHAR2(20);
    END GET_EMPLOYEEDETAILS ;
    CREATE OR REPLACE PACKAGE BODY GET_EMPLOYEEDETAILS
    IS
    PROCEDURE GET_FIRSTNAME(E_ID IN EMPLOYEES.EMPLOYEE_ID%TYPE, F_NAME OUT EMPLOYEES.FIRST_NAME%TYPE)
    IS
    BEGIN
    SELECT FIRST_NAME INTO F_NAME FROM EMPLOYEES WHERE EMPLOYEE_ID = E_ID;
    DBMS_OUTPUT.PUT_LINE(F_NAME);
    END;
    END GET_EMPLOYEEDETAILS;
    Output:
    ERROR at line 4: PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following:
      := . ( @ % ; not null range default character
    The symbol ":=" was substituted for "VARCHAR2" to continue.
    2. IS
    3. PROCEDURE GET_FIRSTNAME(E_ID IN EMPLOYEES.EMPLOYEE_ID%TYPE, F_NAME OUT EMPLOYEES.FIRST_NAME%TYPE);
    4. VARIABLE O VARCHAR2(20);
    5. END GET_EMPLOYEEDETAILS ;
    6. /
    or is there any alternative for bind variables inside an package
    Thanks in advance
    Message was edited by: 1009739

    The "VARIABLE O VARCHAR2(20);" syntax is the way SQLPlus declared bind variables - it is specific to the client. Because PL/SQL packages and procedures are server code that continue past sessions, its only access to the client environment is what the client gives it - it can't go and create a bind variable in the client.
    PL/SQL procedures, functions and packages run from lots of environments, so they cannot access bind variables inside their body - you have to pass any external variables as parameters.
    Anonymous PL/SQL blocks can access bind variables.
    You can declare package public global variables - just leave out that "VARIABLE". E.g.
    CREATE OR REPLACE PACKAGE GET_EMPLOYEEDETAILS
    IS
    PROCEDURE GET_FIRSTNAME(E_ID IN EMP.EMPNO%TYPE, F_NAME OUT EMP.ENAME%TYPE);
    O VARCHAR2(20);
    END GET_EMPLOYEEDETAILS ;
    For local variables in your procedure, just put them between the IS and BEGIN. Using them in SQL inside the PL/SQL automatically uses them as a bind variable.
    create or replace PROCEDURE GET_FIRSTNAME(E_ID IN EMP.EMPNO%TYPE, F_NAME OUT EMP.ENAME%TYPE)
    IS
      O VARCHAR2(20);
      O2 VARCHAR2(21);
    BEGIN
      O := 'FR%';
    SELECT ENAME INTO F_NAME FROM EMP WHERE EMPNO = E_ID and ENAME like O;
    O2 := F_NAME || '2';
    DBMS_OUTPUT.PUT_LINE(F_NAME);
    END;
    O is bound in the query.
    To access bind variables from anonymous PL/SQL, first declare them in the calling environment. In SQL Plus that's
    VARIABLE O VARCHAR2(20);
    In Pro*C it's
    EXEC SQL BEGIN DECLARE SECTION;
      char[21] O
    EXEC SQL END DECLARE SECTION;
    Then reference it in anonymous PL/SQL with a colon as prefix:
    BEGIN
    SELECT FIRST_NAME INTO :O FROM EMPLOYEES WHERE EMPLOYEE_ID = E_ID;
    END;
    This only works for anonymous blocks (starting with BEGIN or DECLARE). As I said, PL/SQL procedures, functions and packages cannot see bind variables from the calling environment

  • Bind Variable

    Is the bind variable syntax supported in procedure? The following produces error:
    VARIABLE salary number
    CREATE OR REPLACE PROCEDURE bindvar
    is
    eid employees.employee_id%type;
    BEGIN
    SELECT employee_id INTO eid FROM EMPLOYEES
    WHERE employee_id > :salary and rownum=1;
    DBMS_OUTPUT.PUT_LINE(:salary);
    END;
    LINE/COL ERROR
    6/26 PLS-00049: bad bind variable 'SALARY'
    7/24 PLS-00049: bad bind variable 'SALARY'
    But if I change the procedure to an anonymous block, everything works fine!

    your variable salary declaration exists only in the current SQL*Plus session. It is not going to be existing in all the environments from where this stored procedure can be called and certainly not on the server where the code is stored in the database.
    The reference can be used in an anonymous block run from the same SQL*Plus session, since it is one time execution. Not in a stored procedure like the way you intend.
    You could have the stored procedure take a number as input and use that parameter in your sql. then at SQL*Plus prompt call the procedure passing the value in :salary variable to get the results.

  • Help need in Binding variable with ViewObject

    hi All,
    iam very new to Oracle ADF . Iam using Jdeveloper 11.1.1.3.0 for developing ADF Application.
    i have created a view object with binding variable "emp_name".
    query :: select * from emp_adf where name:=emp_name
    i need to get this value from my page(jspx).
    please help me how to proceed further.
    My requriement:
    page should have one text filed and after submitting the value it should query the DB and result should come.
    If any one gives little demo or article for this ,it will be really helpful for me.
    Regards,
    Suresh kumar.

    I think below links would be useful for you.
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcquerying.htm#CEGDGIJH
    http://jobinesh.blogspot.com/2010/10/how-to-set-bind-variable-values-at.html
    ~Abhijit

  • Tuning when bind variables is used

    I have the following query.. which has some bind variables..
    When i run in TOAD by hardsocing these bind variables, the query comes out in 2-3 mins.
    But when i run after replacing bind variables during run time , the query hangs.
    These bind variables are indispensible as the the query run dynamically thru the java program.
    Below is the query and explain plan..
    Please help
    select
    acct_key, data_serial_nr,upline,genlgy,rmovl_cmpgn,rmovl_rsn_desc_txt,collection_status,
    acct_full_nm,acct_nr,ordnry_loa_nr,rep_loa_nr,cumltv_actv_loa_nr,addr_line_1_txt,suburb_desc_txt,city_desc_txt,
    pstl_cd,hm_phon_nr,bus_phon_nr,mobile_phon_nr,email_addr_txt,currnt_bal_amt,rnstmt_cmpgn,last_active_cmpgn,avg_discnt_base
    from
    select
    acct_key, data_serial_nr,nvl(pmc.new_value,upline) upline,upline1,genlgy,rmovl_cmpgn,rmovl_rsn_desc_txt,collection_status,
    acct_full_nm,acct_nr,ordnry_loa_nr,rep_loa_nr,cumltv_actv_loa_nr,addr_line_1_txt,suburb_desc_txt,city_desc_txt,
    pstl_cd,hm_phon_nr,bus_phon_nr,mobile_phon_nr,email_addr_txt,currnt_bal_amt,rnstmt_cmpgn,last_active_cmpgn,avg_discnt_base
    from(select /*+ use_hash (smas, da) use_hash (dad, smas) */ dmz.mrkt_id,
    dlg.root_upln_acct_key acct_key,
    '0004' data_serial_nr,
    case when smas.ldrshp_prgrm_ind = 'Y' and smas.ldrshp_rltnshp_key in (1,3) then to_nchar(da.acct_nr)
    when smas.ldrshp_prgrm_ind = 'N' and smas.ldrshp_rltnshp_key not in (1,3) and nvl(smas.upln_acct_nr,-100) = -100 then to_nchar('ZM')
    when smas.ldrshp_prgrm_ind = 'Y' and smas.ldrshp_rltnshp_key in (2) then to_nchar(smas.upln_acct_nr) else to_nchar('ZM') end upline ,
    case when smas.ldrshp_prgrm_ind = 'Y' and smas.ldrshp_rltnshp_key in (1,3) then da.acct_nr
    when smas.ldrshp_prgrm_ind = 'N' and smas.ldrshp_rltnshp_key not in (1,3) and nvl(smas.upln_acct_nr,-100) = -100 then 'ZM'
    when smas.ldrshp_prgrm_ind = 'Y' and smas.ldrshp_rltnshp_key in (2) then smas.upln_acct_nr else 'ZM' end upline1 ,
    case when smas.ldrshp_prgrm_ind = 'Y' and smas.ldrshp_rltnshp_key in (1,3) then
    case when dmz_appt.zone_cd='--' then null else dmz_appt.zone_cd end||smas.genlgy_detl_txt
    when smas.ldrshp_prgrm_ind = 'N' and smas.ldrshp_rltnshp_key not in (1,3) and nvl(smas.upln_acct_nr,-100) = -100 then
    case when dmz_appt.zone_cd='--' then null else dmz_appt.zone_cd end
    when smas.ldrshp_prgrm_ind = 'Y' and smas.ldrshp_rltnshp_key in (2) then
    case when dmz_appt.zone_cd='--' then null else dmz_appt.zone_cd end||substr(smas.GENLGY_DETL_TXT,1,instr(smas.GENLGY_DETL_TXT,'/',-1)-1)
    else case when dmz_appt.zone_cd='--' then null else dmz_appt.zone_cd end end genlgy,
    substr(da.rmovl_cmpgn_perd_id,1,4)||'-'||substr(da.rmovl_cmpgn_perd_id,7,2) rmovl_cmpgn,
    (dmrr.rmovl_rsn_natv_lang_desc_txt) rmovl_rsn_desc_txt,
    dmrr.RMOVL_RSN_CD,
    (case when dmcs.colctn_stus_cd = 'B' then :b1
    when dmcs.colctn_stus_cd = 'C' then :b2
    when dmcs.colctn_stus_cd = 'N' then null end) collection_status,
    '"'||initcap(trim(da.acct_last_nm||' '||
    case when da.acct_mddl_nm is not null then da.acct_mddl_nm||' '||da.acct_frst_nm
    else da.acct_frst_nm end))||'"' acct_full_nm,
    da.acct_nr,
    smas.ordnry_loa_nr,
    smas.rep_loa_nr,
    smas.cumltv_actv_loa_nr,
    '"'||INITCAP(TO_NCHAR (dad.addr_line_1_txt))||'"' addr_line_1_txt,
    '"'||INITCAP(TO_NCHAR (dad.suburb_desc_txt))||'"' suburb_desc_txt,
    '"'||INITCAP (TO_NCHAR (dad.city_desc_txt))||'"' city_desc_txt,
    '"'||dad.pstl_cd||'"' pstl_cd,
    '"'||da.hm_phon_nr||'"' hm_phon_nr,
    '"'||da.bus_phon_nr||'"' bus_phon_nr,
    '"'||da.mobile_phon_nr||'"' mobile_phon_nr,
    '"'||lower(da.email_addr_txt)||'"' email_addr_txt,
    smas.currnt_bal_amt,
    decode(substr(da.rnstmt_cmpgn_perd_id,1,4)||'-'||substr(da.rnstmt_cmpgn_perd_id,7,2),'-',null,substr(smas.rnstmt_cmpgn_perd_id,1,4)||'-'||substr(smas.rnstmt_cmpgn_perd_id,7,2)) rnstmt_cmpgn,
    decode(substr(smas.last_actv_cmpgn_perd_id,1,4)||'-'||substr(smas.last_actv_cmpgn_perd_id,7,2),'-',null,substr(smas.last_actv_cmpgn_perd_id,1,4)||'-'||substr(smas.last_actv_cmpgn_perd_id,7,2)) last_active_cmpgn,
    round(smas.AVG_DISCNT_BASE_AMT,2) avg_discnt_base
    FROM codi.dim_acct da
    join codi.dim_mrkt_zone dmz
    on (da.mrkt_id = dmz.mrkt_id and da.dlvry_zone_sls_org_key = dmz.zone_key)
    join codi.dim_mrkt_acct_stus dmas
    on (dmas.mrkt_id = da.mrkt_id and dmas.acct_stus_key = da.acct_stus_key)
    join cdw.sum_mrkt_acct_sls smas
    on (da.mrkt_id = smas.mrkt_id and da.acct_key = smas.acct_key and smas.fld_sls_cmpgn_perd_id = :b3)
    left join (SELECT dad1.*
    FROM codi.dim_addr dad1 JOIN codi.dim_mrkt_addr_typ dmat
    ON ( dad1.mrkt_id = 63
    AND dad1.mrkt_id = dmat.mrkt_id
    AND dad1.addr_typ_id = dmat.addr_typ_id
    AND NVL (dmat.glbl_addr_typ_id, 1) = 1
    ) dad
    on (da.mrkt_id = dad.mrkt_id and da.acct_key = dad.acct_key)
    left join codi.dim_mrkt_rmovl_rsn dmrr
    on (smas.mrkt_id = dmrr.mrkt_id and smas.rmovl_rsn_id = dmrr.rmovl_rsn_id and dmrr.rmovl_rsn_id <> -100)
    left join codi.dim_colctn_stus dmcs
    on ( smas.colctn_stus_key = dmcs.colctn_stus_key)
    left join codi.dim_mrkt_zone dmz_appt
    on (smas.mrkt_id = dmz_appt.mrkt_id and smas.appt_sls_org_key = dmz_appt.zone_key)
    join codi.dim_ldrshp_genlgy dlg
    on (smas.mrkt_id = dlg.mrkt_id and smas.acct_key = dlg.dwnln_acct_key and smas.fld_sls_cmpgn_perd_id = dlg.fld_sls_cmpgn_perd_id)
    Where da.mrkt_id = :b4
    and da.rmovl_cmpgn_perd_id between :b5 and :b6
    and nvl(da.appt_cmpgn_perd_id,19000301) < da.rmovl_cmpgn_perd_id
    and da.rmovl_cmpgn_perd_id > nvl(da.rnstmt_cmpgn_perd_id,19000301)
    and dmas.acct_stus_id = 2
    and ( (mrkt_id = 63 and dmas.ACCT_STUS_CD in ('C','D') ) or (dmas.mrkt_id <> 63))
    and dlg.root_upln_acct_key <> -100
    and dmz.zone_key <>-100) a
    LEFT JOIN hz_metadata.pr_market_control pmc
    ON ( a.mrkt_id = pmc.mrkt_id
    AND a.upline =pmc.column_nm and
    pmc.table_nm ='FID 7'
    and pmc.report_level='ALL'
    and pmc.rpt_lang_cd = :b7
    ) where '2' = case when a.mrkt_id =66 then a.RMOVL_RSN_CD else '2' end
    ) ORDER BY acct_key,decode(upline1,'ZM',1,upline1) ,genlgy
    Plan
    SELECT STATEMENT ALL_ROWS Cost: 42,324
         50 PX COORDINATOR
              49 PX SEND QC (ORDER) SYS.:TQ10004 Cost: 42,324 Bytes: 3,809 Cardinality: 1
                   48 SORT ORDER BY Cost: 42,324 Bytes: 3,809 Cardinality: 1
                        47 PX RECEIVE Cost: 42,323 Bytes: 3,809 Cardinality: 1
                             46 PX SEND RANGE SYS.:TQ10003 Cost: 42,323 Bytes: 3,809 Cardinality: 1
                                  45 NESTED LOOPS OUTER Cost: 42,323 Bytes: 3,809 Cardinality: 1
                                       42 VIEW Cost: 42,323 Bytes: 3,733 Cardinality: 1
                                            41 FILTER
                                                 40 NESTED LOOPS OUTER Cost: 42,323 Bytes: 1,437 Cardinality: 1
                                                      37 HASH JOIN OUTER Cost: 42,322 Bytes: 1,421 Cardinality: 1
                                                           25 PX RECEIVE Cost: 20,878 Bytes: 767 Cardinality: 1
                                                                24 PX SEND HASH SYS.:TQ10002 Cost: 20,878 Bytes: 767 Cardinality: 1
                                                                     23 NESTED LOOPS Cost: 20,878 Bytes: 767 Cardinality: 1
                                                                          19 NESTED LOOPS Cost: 20,878 Bytes: 736 Cardinality: 1
                                                                               17 NESTED LOOPS OUTER Cost: 20,878 Bytes: 727 Cardinality: 1
                                                                                    14 NESTED LOOPS OUTER Cost: 20,877 Bytes: 688 Cardinality: 1
                                                                                         11 NESTED LOOPS Cost: 20,877 Bytes: 681 Cardinality: 1
                                                                                              8 HASH JOIN Cost: 20,877 Bytes: 656 Cardinality: 1
                                                                                                   5 BUFFER SORT
                                                                                                        4 PX RECEIVE Cost: 12,703 Bytes: 282 Cardinality: 1
                                                                                                             3 PX SEND BROADCAST SYS.:TQ10000 Cost: 12,703 Bytes: 282 Cardinality: 1
                                                                                                                  2 PARTITION LIST SINGLE Cost: 12,703 Bytes: 282 Cardinality: 1 Partition #: 22
                                                                                                                       1 TABLE ACCESS FULL TABLE CODI.DIM_ACCT Cost: 12,703 Bytes: 282 Cardinality: 1 Partition #: 22
                                                                                                   7 PX BLOCK ITERATOR Cost: 8,173 Bytes: 24,524,302 Cardinality: 65,573 Partition #: 24
                                                                                                        6 TABLE ACCESS FULL TABLE CDW.SUM_MRKT_ACCT_SLS Cost: 8,173 Bytes: 24,524,302 Cardinality: 65,573 Partition #: 24
                                                                                              10 TABLE ACCESS BY INDEX ROWID TABLE CODI.DIM_MRKT_ACCT_STUS Cost: 0 Bytes: 25 Cardinality: 1
                                                                                                   9 INDEX UNIQUE SCAN INDEX (UNIQUE) CODI.PK_DIM_REP_STUS Cost: 0 Cardinality: 1
                                                                                         13 TABLE ACCESS BY INDEX ROWID TABLE CODI.DIM_COLCTN_STUS Cost: 0 Bytes: 7 Cardinality: 1
                                                                                              12 INDEX UNIQUE SCAN INDEX (UNIQUE) CODI.PK_DIM_COLCTN_STUS Cost: 0 Cardinality: 1
                                                                                    16 TABLE ACCESS BY INDEX ROWID TABLE CODI.DIM_MRKT_RMOVL_RSN Cost: 0 Bytes: 39 Cardinality: 1
                                                                                         15 INDEX UNIQUE SCAN INDEX (UNIQUE) CODI.PK_DIM_MRKT_RMOVL_RSN Cost: 0 Cardinality: 1
                                                                               18 INDEX UNIQUE SCAN INDEX (UNIQUE) CODI.PK_DIM_MRKT_ZONE Cost: 0 Bytes: 9 Cardinality: 1
                                                                          22 PARTITION RANGE SINGLE Cost: 0 Bytes: 31 Cardinality: 1 Partition #: 33
                                                                               21 PARTITION LIST SINGLE Cost: 0 Bytes: 31 Cardinality: 1 Partition #: 34
                                                                                    20 INDEX RANGE SCAN INDEX (UNIQUE) CODI.PK_DIM_LDRSHP_GENLGY Cost: 0 Bytes: 31 Cardinality: 1 Partition #: 34
                                                           36 BUFFER SORT
                                                                35 PX RECEIVE Cost: 21,442 Bytes: 249,603,678 Cardinality: 381,657
                                                                     34 PX SEND HASH SYS.:TQ10001 Cost: 21,442 Bytes: 249,603,678 Cardinality: 381,657
                                                                          33 VIEW Cost: 21,442 Bytes: 249,603,678 Cardinality: 381,657
                                                                               32 FILTER
                                                                                    31 MERGE JOIN Cost: 21,442 Bytes: 35,112,444 Cardinality: 381,657
                                                                                         27 TABLE ACCESS BY INDEX ROWID TABLE CODI.DIM_ADDR Cost: 21,438 Bytes: 65,721,278 Cardinality: 801,479
                                                                                              26 INDEX RANGE SCAN INDEX CODI.FK_DIMMRKTADDRTYP_DIMADDR Cost: 999 Cardinality: 801,479
                                                                                         30 SORT JOIN Cost: 4 Bytes: 70 Cardinality: 7
                                                                                              29 TABLE ACCESS BY INDEX ROWID TABLE CODI.DIM_MRKT_ADDR_TYP Cost: 3 Bytes: 70 Cardinality: 7
                                                                                                   28 INDEX RANGE SCAN INDEX CODI.FK_DIMMRKT_DIMMRKTADDRTYP Cost: 1 Cardinality: 8
                                                      39 TABLE ACCESS BY INDEX ROWID TABLE CODI.DIM_MRKT_ZONE Cost: 0 Bytes: 16 Cardinality: 1
                                                           38 INDEX UNIQUE SCAN INDEX (UNIQUE) CODI.PK_DIM_MRKT_ZONE Cost: 0 Cardinality: 1
                                       44 TABLE ACCESS BY INDEX ROWID TABLE HZ_METADATA.PR_MARKET_CONTROL Cost: 0 Bytes: 76 Cardinality: 1
                                            43 INDEX RANGE SCAN INDEX (UNIQUE) HZ_METADATA.PK_PR_MARKET_CONTROL Cost: 0 Cardinality: 1

    I suggest you read this, otherwise you won't get much help...
    HOW TO: Post a SQL statement tuning request - template posting

  • Is it possible to set bind variable for picklist?? for messageChoice

    we are trying to develop one new page in local JDeveloper.
    we have requirement for passing a bind variable to a picklist. is it possible?
    Item Type : messageChoice
    Query:
    SELECT DISTINCT TO_CHAR (effective_date, 'YYYY') TYPE
    FROM pay_assignment_actions a, pay_payroll_actions b
    WHERE a.payroll_action_id = b.payroll_action_id
    AND assignment_id =
    (SELECT assignment_id
    FROM per_assignments_x
    WHERE person_id = :person_id AND primary_flag = 'Y'
    AND assignment_type = 'E')
    AND a.action_status = 'C'
    AND b.payroll_action_id IN (SELECT payroll_action_id
    FROM pay_payroll_actions_v
    WHERE action_type IN ('P'))
    AND b.payroll_action_id IN (SELECT payroll_action_id
    FROM xxilo_pre_payments)
    ORDER BY 1 DESC
    processRequest() code:
    PayslipAMImpl am=(PayslipAMImpl)pageContext.getApplicationModule(webBean);
    YearPicklistVOImpl yvo=(YearPicklistVOImpl)am.getYearPicklistVO1();
    Number t = new Number(pageContext.getEmployeeId());
    yvo.setWhereClauseParams(null);
    yvo.setWhereClauseParam(0,t);
    for this query & code we are getting
    ERROR:
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    if we hardcoded person_id in query to some value then we are getting results without any error.

    user603084 ,
    In the query you have specifies bind variable as :person_id , but in your VO execution code you are setting value for bind variable :1
    yvo.setWhereClauseParam(0,t);
    You need to change the bind variable in query , like :1
    and then execute the query of VO, as you have done. Also do executeQuery, after setting bind variables.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Bind variable problem in a procedure

    Hi,
    Is there any way I can pass a parameter in a procedure as we do in sql plus (for example where date = &date).
    I have a procedure that is somewhat similar to this...
    select (field 1, field2...
    from table1, table 2....
    where ....
    and ..
    and v_fiscal_year (here I want the bind variable)
    UNION
    select (field 1, field2...
    from table1, table 2....
    where .....
    and ..
    and ..
    and v_fiscal_year (here I want the bind variable)
    I need to register this procedure in oracle apps as a concurrent program where a user should be able to provide value for fiscal_year and then write the file out in a text file.
    Thanks
    A/A

    What you've shown isn't a procedure, but is a query.
    I assume your "field1", "field2" within the query means that you are expecting to be able to create a dynamic SQL from parameters passed into a procedure.
    For that you will need to use DBMS_SQL package to create and execute a dynamic query or use the EXECUTE IMMEDIATE statemetn to execute a query built up in a string. Note however, that dynamic SQL is inherently bad practice and should only ever be used as a last resort. What exactly are you trying to achieve as there are likely to be better ways of doing it?

Maybe you are looking for

  • How to loop my own beats

    Hi - For the life of me I cannot figure out how to take a beat I have created and then loop it.  There is no "create loop" option as there was in previous versions.  Help please. Thanks

  • Slow graphics performance - login screen, launchpad, full screen video all stutter

    Since installing Mavericks, I've found that several system animations are slow/stutter. This is on a 2012 MacBook Air with maxed out hardware specs so its not b/c I'm running an old system. Some examples: - When booting up, right before I reach the l

  • HT204204 Having trouble to connect with bluetooth

    Why i having trouble to connect with bluetooth woth other smartphone? I  have already try to connect with bluetooth beetwen my iphone 4 with iphone 6 ? While my iphone 4 have already upgrade to ios 8

  • Security Update 2008-007 causing troubles

    Firstly, apologies if this is in the wrong forum. Since Security Update 2008-007 was released, I could not install the update through Software Update as it could not save the file. I located the 131MB installer on the Apple Downloads site and proceed

  • How can resize redo log ?

    hi, i want how can resize redo log size, i have try resize redo log file following way 1] first i have my redo log size is GROUP# STATUS MEMBER SIZE 3 ONLINE /oradata/xyz/redo03.log 100M 2 ONLINE /oradata/xyz/redo02.log 100M 1 ONLINE /oradata/xyz/red