Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Need help about the script error using oracle 2-tier

$
0
0

Recorded the application as

 lr_start_transaction("LaunchApp");

                 lrd_init(&InitInfo, DBTypeVersion);

                lrd_initialize_db(LRD_DBTYPE_ORACLE, 2, 0);

                lrd_env_init(LRD_DBTYPE_ORACLE, &OraEnv1, 0, 0);

                lrd_ora8_handle_alloc(OraEnv1, SVCCTX, &OraSvc1, 0);

                lrd_ora8_handle_alloc(OraEnv1, SERVER, &OraSrv1, 0);

                lrd_ora8_handle_alloc(OraEnv1, SESSION, &OraSes1, 0);

                lrd_server_attach(OraSrv1, "tecs6b", 6, 0, 0);

                lrd_ora8_attr_set_from_handle(OraSvc1, SERVER, OraSrv1, 0, 0);

                lrd_ora8_attr_set(OraSes1, USERNAME, "eltpca", -1, 0);

                lrd_ora8_attr_set(OraSes1, PASSWORD, lr_decrypt("5874ca7fc5a1d7494e926de9"), -1, 0);

                lrd_ora8_attr_set_from_handle(OraSvc1, SESSION, OraSes1, 0, 0);

                lrd_session_begin(OraSvc1, OraSes1, 1, 0, 0);

                lrd_oci8_to_oci7(OraSvc1, &Con1, 0);

                lrd_open_cursor(&Csr1, Con1, 0);

                lrd_stmt(Csr1, "ALTER SESSION SET REMOTE_DEPENDENCIES_MODE=SIGNATURE", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_exec(Csr1, 0, 0, 0, 0, 0);

                lrd_close_cursor(&Csr1, 0);

                lrd_ora8_attr_set_from_handle(OraSvc1, SESSION, OraSes1, 0, 0);

                lrd_open_cursor(&Csr2, Con1, 0);

                lrd_stmt(Csr2, "ALTER SESSION SET REMOTE_DEPENDENCIES_MODE=SIGNATURE", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_exec(Csr2, 0, 0, 0, 0, 0);

                lrd_close_cursor(&Csr2, 0);

                lr_end_transaction("LaunchApp",LR_AUTO);

 From home page , I am trying to generate a report by clicking on a Report tab.

It prompts me an authentication window , which gets recorded as

lrd_server_attach(OraSrv2, "tecs6b", 6, 0, 0);

                lrd_ora8_attr_set_from_handle(OraSvc2, SERVER, OraSrv2, 0, 0);

                lrd_ora8_attr_set(OraSes2, USERNAME, "ELTPCA", -1, 0);

                lrd_ora8_attr_set(OraSes2, PASSWORD, lr_decrypt("5874ca805387ef603cf0c08f"), -1, 0);

                lrd_session_begin(OraSvc2, OraSes2, 1, 0, 1);

               

                lr_think_time(32);   /*check until here */

 

                lrd_server_attach(OraSrv2, "tecs6b", 6, 0, 1);

                lrd_server_detach(OraSrv2, 0, 0);

                lrd_server_attach(OraSrv2, "tecs6b", 6, 0, 0);

                lrd_ora8_attr_set_from_handle(OraSvc2, SERVER, OraSrv2, 0, 0);

                lrd_ora8_attr_set(OraSes2, USERNAME, "eltpca", -1, 0);

                lrd_ora8_attr_set(OraSes2, PASSWORD, lr_decrypt("5874ca807387cf601cf0e08f"), -1, 0);

                lrd_session_begin(OraSvc2, OraSes2, 1, 0, 0);

                lrd_ora8_attr_set_from_handle(OraSvc2, SESSION, OraSes2, 0, 0);

                lrd_oci8_to_oci7(OraSvc2, &Con2, 0);

                lrd_open_cursor(&Csr22, Con2, 0);

                lrd_stmt(Csr22, "ALTER SESSION SET REMOTE_DEPENDENCIES_MODE=SIGNATURE", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_exec(Csr22, 0, 0, 0, 0, 0);

                lrd_close_cursor(&Csr22, 0);

                lrd_open_cursor(&Csr23, Con2, 0);

                lrd_stmt(Csr23, "SELECT NUMERIC_VALUE FROM PRODUCT_USER_PROFILE  WHERE UPPER(PRODUCT)"

        " = 'SQL*REPORTWRITER'    AND UPPER(ATTRIBUTE) = "

        "'PAGE_LIMIT'    AND USERID = 'ELTPCA'", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_bind_cols(Csr23, BCInfo_D1071, 0);

                lrd_exec(Csr23, 0, 0, 0, 0, 0);

                lrd_fetch(Csr23, 0, 1, 0, PrintRow288, 0);

                /*Note:  no rows returned by above lrd_fetch*/

 

                lrd_stmt(Csr23, "SELECT NUMERIC_VALUE FROM PRODUCT_USER_PROFILE  WHERE UPPER(PRODUCT)"

        " = 'SQL*REPORTWRITER'    AND UPPER(ATTRIBUTE) = "

        "'PAGE_LIMIT'    AND USERID = 'PUBLIC'", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_bind_cols(Csr23, BCInfo_D1073, 0);

                lrd_exec(Csr23, 0, 0, 0, 0, 0);

                lrd_fetch(Csr23, 0, 1, 0, PrintRow290, 0);

                /*Note:  no rows returned by above lrd_fetch*/

 

                lrd_close_cursor(&Csr23, 0);

                lrd_initialize_db(LRD_DBTYPE_ORACLE, 2, 0);

                lrd_env_init(LRD_DBTYPE_ORACLE, &OraEnv3, 0, 0);

                lrd_open_cursor(&Csr24, Con2, 0);

                lrd_stmt(Csr24, "select ROLE  from SESSION_ROLES", -1, 1 /*Deferred*/, 1 /*Dflt Ora Ver*/, 0);

               

                //lrd_stmt(Csr24, "select ROLE  from SESSION_ROLES                     ", -1, 1 /*Deferred*/, 1 /*Dflt Ora Ver*/, 0);

               

                lrd_exec(Csr24, 1, 0, 0, 0, 0);

                lrd_bind_cols(Csr24, BCInfo_D1075, 0);

                lrd_fetch(Csr24, -7, 1, 0, PrintRow294, 0);

                GRID(294);

                lrd_ora8_handle_alloc(OraEnv2, STMT, &OraStm8, 0);

                lrd_ora8_stmt(OraStm8, "select ca . card_number \"Card number\" , ca . cr_account_nbr \""

        "Account number\" , ca . client_code \"Client code\" , ca . "

        "embossed_name \"Short name\" , ca . product_code \"Product "

        "code\" , ac . profile_code \"Credit plan\" , ca . "

        "promo_code \"Promo code\" , ac . opening_date \"Acc opening "

        "date\" , cl . date_create \"Customer opening date\" , ca . "

        "opening_date \"Card opening date\" , ca . expiry_date \""

        "Expiry date\" , clb . credit_limit \"Client credit limit\" ,"

        " ac . credit_limit \"Account credit limit\" , cbd . "

        "credit_limit \"Card credit limit\" , NVL ( ac . "

        "credit_limit , 0 ) + NVL ( cbd . bal_payment , 0 ) - NVL ( "

        "cbd . bal_purchase , 0 ) - NVL ( cbd . bal_cash , 0 ) - NVL "

        "( cbd . bal_te , 0 ) - NVL ( cbd . bal_interest , 0 ) - NVL "

        "( cbd . bal_fee , 0 ) - NVL ( cbd . bal_loan_txn , 0 ) - "

        "NVL ( cbd . bal_transfer , 0 ) + NVL ( cbd . cur_payment , "

        "0 ) - NVL ( cbd . cur_purchase , 0 ) - NVL ( cbd . cur_cash "

        ", 0 ) - NVL ( cbd . cur_te , 0 ) - NVL ( cbd . cur_interest "

        ", 0 ) - NVL ( cbd . cur_fee , 0 ) - NVL ( cbd . "

        "cur_loan_txn , 0 ) - NVL ( cbd . cur_transfer , 0 ) - NVL ( "

        "cbd . cur_autho , 0 ) \"Current outstanding\" , decode ( ca "

        ". basic_card_flag , 0 , 'Primary' , 'Add-on' ) \"Card type\""

        " , ca . basic_card_number \"Basic card\" , ac . cycoff_code "

        "\"Billing cycle\" , ac . acc_unpaid_status \"Delinquency "

        "block\" , ac . acc_adm_status \"Admin block\" , ac . "

        "acc_unpaid_status_date \"Delinquency block date\" , ac . "

        "acc_adm_status_date \"Admin block date\" , ca . status_code "

        "\"Card block\" , ca . status_date \"Card block date\" , nw "

        ". network_code \"Network\" , ca . branch_code \""

        "Branch_code\" from card ca , account ac , client cl , "

        "cr_card_balance_details cbd , network_card_type nw , "

        "cr_client_balance_details clb , product pr   where "

        "ac.bank_code = : p_bank_code and ca.status_code = '7' and "

        "ca.branch_code = '0380' and nw.network_code = '02' and "

        "ca.cr_account_nbr = ac.cr_account_nbr and ca.bank_code = "

        "ac.bank_code and ca.client_code = cl.client_code and "

        "ca.bank_code = cl.bank_code and ca.card_number = "

        "cbd.card_number and ca.bank_code = cbd.bank_code and "

        "ca.client_code = clb.client_code and ca.bank_code = "

        "clb.bank_code and ca.product_code = pr.product_code and "

        "ca.bank_code = pr.bank_code and pr.card_type = "

        "nw.network_card_id ORDER BY 25 ASC,26 ASC , ca.client_code ,"

        " ca.basic_card_number desc", 1, 0, 0);

                lrd_assign(&P_BANK_CODE_D1076, 0, 0, 0, 0);

                lrd_ora8_bind_placeholder(OraStm8, &OraBnd6, "P_BANK_CODE", &P_BANK_CODE_D1076,

        0, 0, 0);

                lrd_ora8_exec(OraSvc2, OraStm8, 0, 0, &uliRowsProcessed, 0, 0, 0, 16,

        0);

                GRID0(296);

                lrd_open_cursor(&Csr25, Con2, 0);

                lrd_stmt(Csr25, "SELECT BRANCH_NAME   FROM BRANCH  WHERE LTRIM(RTRIM(BRANCH_CODE)) = "

        "LTRIM(RTRIM(:b1))  AND BANK_CODE = :b2", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_bind_cols(Csr25, BCInfo_D1078, 0);

                lrd_assign_bind(Csr25, "B2", "504436", &B2_D1079, 0,

        0, 0);

                lrd_assign_bind(Csr25, "B1", "0380", &B1_D1080, 0,

        0, 0);

                lrd_exec(Csr25, 0, 0, 0, 0, 0);

                lrd_fetch(Csr25, 1, 1, 0, PrintRow300, 0);

                GRID(300);

                lrd_cancel(0, Csr25, 2 /*Current*/, 0);

                lrd_open_cursor(&Csr26, Con2, 0);

                lrd_stmt(Csr26, "SELECT NETWORK_LABEL   FROM NETWORK  WHERE NETWORK_CODE = :b1", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_bind_cols(Csr26, BCInfo_D1082, 0);

                lrd_assign_bind(Csr26, "B1", "02", &B1_D1083, 0, 0, 0);

                lrd_exec(Csr26, 0, 0, 0, 0, 0);

                lrd_fetch(Csr26, 1, 1, 0, PrintRow304, 0);

                GRID(304);

                lrd_cancel(0, Csr26, 2 /*Current*/, 0);

                lrd_open_cursor(&Csr27, Con2, 0);

                lrd_stmt(Csr27, "SELECT DESCRIPTION   FROM SYSCODE  WHERE CODE = :b1  AND BANK_CODE ="

        " :b2  AND TYPE_ID = 'CARD_STATUS_RESPONSE'", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_bind_cols(Csr27, BCInfo_D1085, 0);

                lrd_assign_bind(Csr27, "B2", "504436", &B2_D1086, 0,

        0, 0);

                lrd_assign_bind(Csr27, "B1", "7", &B1_D1087, 0, 0, 0);

                lrd_exec(Csr27, 0, 0, 0, 0, 0);

                lrd_fetch(Csr27, 1, 1, 0, PrintRow308, 0);

                GRID(308);

                lrd_cancel(0, Csr27, 2 /*Current*/, 0);

                lrd_open_cursor(&Csr28, Con2, 0);

                lrd_stmt(Csr28, "SELECT USR_NAME   FROM USERS  WHERE USR_ID = :b1", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_bind_cols(Csr28, BCInfo_D1089, 0);

                lrd_assign_bind(Csr28, "B1", "Admin", &B1_D1090, 0,

        0, 0);

                lrd_exec(Csr28, 0, 0, 0, 0, 0);

                lrd_fetch(Csr28, 1, 1, 0, PrintRow312, 0);

                GRID(312);

                lrd_cancel(0, Csr28, 2 /*Current*/, 0);

                lrd_open_cursor(&Csr29, Con2, 0);

                lrd_stmt(Csr29,

        "SELECT REPORT_HEADING   FROM EC_REPORTS  WHERE REPORT_ID = 'RCD_990.REP'", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_bind_cols(Csr29, BCInfo_D1092, 0);

                lrd_exec(Csr29, 0, 0, 0, 0, 0);

                lrd_fetch(Csr29, 0, 1, 0, PrintRow314, 0);

                /*Note:  no rows returned by above lrd_fetch*/

 

                lrd_cancel(0, Csr29, 2 /*Current*/, 0);

                lrd_open_cursor(&Csr30, Con2, 0);

                lrd_stmt(Csr30, "SELECT BA.BANK_NAME   FROM BANK BA  WHERE BA.BANK_CODE = :b1", -1, 0 /*Non deferred*/, 1 /*Dflt Ora Ver*/, 0);

                lrd_bind_cols(Csr30, BCInfo_D1094, 0);

                lrd_assign_bind(Csr30, "B1", "504436", &B1_D1095, 0,

        0, 0);

                lrd_exec(Csr30, 0, 0, 0, 0, 0);

                lrd_fetch(Csr30, 1, 1, 0, PrintRow318, 0);

                GRID(318);

                lrd_cancel(0, Csr30, 2 /*Current*/, 0);

                lrd_assign(&P_BANK_CODE_D1096, "504436", 0, 0, 0);

                lrd_ora8_bind_placeholder(OraStm8, &OraBnd6, "P_BANK_CODE", &P_BANK_CODE_D1096,

        0, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef12, 1, &Card_number_D1097, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef13, 2, &Account_number_D1098, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef14, 3, &Client_code_D1099, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef15, 4, &Short_name_D1100, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef16, 5, &Product_code_D1101, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef17, 6, &Credit_plan_D1102, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef18, 7, &Promo_code_D1103, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef19, 8, &Acc_opening_date_D1104, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef20, 9, &Customer_opening_date_D1105, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef21, 10, &Card_opening_date_D1106, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef22, 11, &Expiry_date_D1107, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef23, 12, &Client_credit_limit_D1108, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef24, 13, &Account_credit_limit_D1109, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef25, 14, &Card_credit_limit_D1110, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef26, 15, &Current_outstanding_D1111, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef27, 16, &Card_type_D1112, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef28, 17, &Basic_card_D1113, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef29, 18, &Billing_cycle_D1114, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef30, 19, &Delinquency_block_D1115, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef31, 20, &Admin_block_D1116, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef32, 21, &Delinquency_block_date_D1117, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef33, 22, &Admin_block_date_D1118, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef34, 23, &Card_block_D1119, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef35, 24, &Card_block_date_D1120, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef36, 25, &Network_D1121, 0, 0);

                lrd_ora8_bind_col(OraStm8, &OraDef37, 26, &Branch_code_D1122, 0, 0);

                lrd_ora8_exec(OraSvc2, OraStm8, 25, 0, &uliRowsProcessed, 0, 0, 0, 0,

        1);

                GRID0(320);

                // lrd_ora8_print(OraStm8, 0);

 But while executing the above Iam getting the below error--

Action.c(739): Server Handle has not been allocated (NULL)

Action.c(739): server_attach: ERROR, return-code=LRDE2090

 Could any body please help me in resolving this error.

 


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>