PL/SQL with synonym - bizarre problem
I have a strange problem. I have a synonym, which points to a remote table in a linked database. I can issue SQL queries using the synonym and get results back, everything perfectly ok. But when - in the same session - I try to compile a PL/SQL procedure that selects from the synonym, I get an error:
PLS-00201: identifier 'SW_VALID_CODE_SYN' must be declared
If I replace the synonym in the PL/SQL code with the actual name of the remote table, once again everything is fine. And I have other synonyms, to other remote tables in the same linked database, that don't have this problem.
WTF ???
Make sure that the privileges for that table have been granted directly and not through a role.
For further information have a look at
http://asktom.oracle.com/~tkyte/Misc/RolesAndProcedures.html
Similar Messages
-
Please please please help me with this bizarre problem!!!
Hi there,
I am not an expert on web design and I am also not a complete newbie. I have built web designs before - and used frames and done it all on dreamweaver - however my target frames aren't working on this website and I'm not sure why???
I have two frames on my index page - one left and one right - the left is the menu and the right is the content of which ever button is selected from the menu in the left frame. However the targets don't work - when clicking on the buttons (links) it makes a new window pop up.
I have named the frames and saved the frame set as index.html.
The coding says for the shop button:
<td><a href="Shop.html" target="_right" onmouseover="MM_swapImage('Image4','','Images/Shop Button RO.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="Images/Shop Button.jpg" name="Image4" width="163" height="56" border="0" id="Image4" /></a></td>
I have tried renaming the frames - tried a different computer - tried just about everything I can think of - it has always worked for me before but since building this site it doesn't! Have I missed something????
Please please help me - it's been driving me up the wall for 2 weeks!!!
Thanks in advance for yourhelp.
Pink
xxxI haven't used frames since the late 1990s, so can't be of much help :-)
Here's a tutorial that may help:
http://www.dwfaq.com/tutorials/Frames/framesets1.asp
Page 4 shows how to link pages correctly
Is there a specific reason why you are still using frames... they are very old hat and hardly used anymore these days :-)
Here's the reason why frames are evil:
http://apptools.com/rants/framesevil.php
Nadia
Adobe® Community Expert : Dreamweaver
Unique CSS Templates | Tutorials | SEO Articles
http://www.DreamweaverResources.com
Web Design & Development
http://www.perrelink.com.au
http://twitter.com/nadiap -
Problem while Creating MVLOG with synonym in Oracle 9i:Is it an Oracle Bug?
Hi All,
I am facing a problem while Creating MVLOG with synonym in Oracle 9i but for 10G it is working fine. Is it an Oracle Bug? or i am missing something.
SQL> select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL>
SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
Table created.
SQL> create materialized view log on t;
Materialized view log created.
SQL> create public synonym syn_t for t;
Synonym created.
SQL> CREATE MATERIALIZED VIEW MV_t
2 REFRESH ON DEMAND
3 WITH PRIMARY KEY
4 AS
5 SELECT name,id
6 FROM syn_t;
Materialized view created.
SQL> CREATE MATERIALIZED VIEW LOG ON MV_t
2 WITH PRIMARY KEY
3 (name)
4 INCLUDING NEW VALUES;
Materialized view log created.
SQL> select * from v$version;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
PL/SQL Release 9.2.0.6.0 - Production
CORE 9.2.0.6.0 Production
TNS for Solaris: Version 9.2.0.6.0 - Production
NLSRTL Version 9.2.0.6.0 - Production
SQL>
SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
Table created.
SQL> create materialized view log on t;
Materialized view log created.
SQL> create public synonym syn_t for t;
Synonym created.
SQL> CREATE MATERIALIZED VIEW MV_t
REFRESH ON DEMAND
WITH PRIMARY KEY
AS
2 3 4 5 SELECT name,id
FROM syn_t; 6
Materialized view created.
SQL> CREATE MATERIALIZED VIEW LOG ON MV_t
WITH PRIMARY KEY
(name)
INCLUDING NEW VALUES; 2 3 4
CREATE MATERIALIZED VIEW LOG ON MV_t
ERROR at line 1:
ORA-12014: table 'MV_T' does not contain a primary key constraintRegards
Message was edited by:
Avinash Tripathi
nullHi Nicloei,
Thanks for the reply. Actually i don't want any work around (Creating MVLOG on table rather than synonym is fine with me) . I just wanted to know it is actually an oracle bug or something else.
Regards
Avinash -
Problem in SQL with CURSOR( ) ,Why the CURSOR did not work?
hi All:
I have a problem in SQL with CURSOR.
The data is as the attachments.
Here is the SQL statement as follow:
SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
FROM F3102 X
WHERE X.IGDOCO=A.WADOCO
AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
WHERE A.WADOCO='10004'
The statement above returns records as follow:
WADC WADOCO IGCOST DETAIL
WO 10004 A1 CURSOR STATEMENT : 4
CURSOR STATEMENT : 4
IGLITM
1KV90CPG2
1KV90CPG2
1KV90CPG2
But, after I add one statement in the subquery, there is no record returned from CURSOR.
Here is the SQL statement:
SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
FROM F3102 X
WHERE X.IGDOCO=A.WADOCO
AND X.IGCOST=B.IGCOST
AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
WHERE A.WADOCO='10004'
The statement above returns records as follow:
WADC WADOCO IGCOST DETAIL
WO 10004 A1 CURSOR STATEMENT : 4
CURSOR STATEMENT : 4
no rows selected
Why the CURSOR did not work?
The database version is Oracle Database 10g Release 10.2.0.4.0 - 64bit Production.
F3102 DATA:
IGDOCO IGDCTO IGLITM IGCOST
10004 WO 1KV90CPG2 A1
10004 WO 1KV90CPG2 B1
10004 WO 1KV90CPG2 C3
10004 WO 1KV90CPG2 D1
F4801 DATA:
WADCTO WADOCO
WO 10004
Edited by: user2319139 on 2010/3/2 上午 1:17
Edited by: user2319139 on 2010/3/2 上午 1:20Why this structure and not a join?
The cursor() function returns a cursor handle that needs to be processed - in other words, the client needs to fetch data from it. The Oracle® Database SQL Reference+ (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions005.htm#i1035107) describes it as being equivalent to a ref cursor handle.
Thus why are you creating ref cursor handles as a column in a SQL projection - where each row will have a "+nested+" ref cursor handle to process. What problem are you attempting to hack solve this way? -
Hi everyone,
I am new to SQL server....I am learning C# programming using visual studio 2013 . And I want to learn SQL database language to create and practice C# database project....My computer meets all the hardware requirement for SQL installation (i.e. My computer
has window 7 OS , 80 GB freen HD and 6 GB RAM. ) Therefore I download Microsoft SQL server express 2012 try to install it in my computer (which already has visual studio).
But during installation of SQL server I have problem ...it says
the server doesn't respond in timely fashion. When I research about it everyone were saying uninstall sql and reinstall again. I uninstall and re install but still having same problem...
The database engine also not installed displaying same error.
I don't know how can i install sql server 2012 to use with visual studio in same computer.
Can somebody please help with SQL installation please ?
It will be great help.
Many thanks in advance
regards
rashHi
my summary file is :
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2146232832
Start time: 2015-04-06 11:34:18
End time: 2015-04-06 19:04:46
Requested action: Install
Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for SQLEngine: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for DQ: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for FullText: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for Replication: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for IS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for RS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for AS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Machine Properties:
Machine name: RASHA-VAIO
Machine processor count: 4
OS version: Windows 7
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature
Language Edition Version Clustered
SQL Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS Database Engine Services 1033
Express Edition 10.1.2531.0 No
SQL Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS SQL Server Replication 1033
Express Edition 10.1.2531.0 No
Package properties:
Description: Microsoft SQL Server 2012 Service Pack 1
ProductName: SQL Server 2012
Type: RTM
Version: 11
SPLevel: 0
Installation location: E:\x64\setup\
Installation edition: Enterprise
Product Update Status:
None discovered.
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: false
AGTSVCACCOUNT: NT Service\SQLSERVERAGENT
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Config
ASDATADIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Data
ASLOGDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: TABULAR
ASSVCACCOUNT: NT Service\MSSQLServerOLAPService
ASSVCPASSWORD: <empty>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: RASHA-VAIO\RASHA
ASTEMPDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME: MAIN
CLTRESULTDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\ResultDir\
CLTSTARTUPTYPE: Manual
CLTSVCACCOUNT: NT Service\SQL Server Distributed Replay Client
CLTSVCPASSWORD: <empty>
CLTWORKINGDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir\
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\ConfigurationFile.ini
CTLRSTARTUPTYPE: Manual
CTLRSVCACCOUNT: NT Service\SQL Server Distributed Replay Controller
CTLRSVCPASSWORD: <empty>
CTLRUSERS: RASHA-VAIO\RASHA
ENABLERANU: false
ENU: true
ERRORREPORTING: false
FEATURES: SQLENGINE, REPLICATION, FULLTEXT, DQ, AS, RS, RS_SHP, RS_SHPWFE, DQC, BIDS, CONN, IS, BC, SDK, BOL, SSMS, ADV_SSMS, DREPLAY_CTLR, DREPLAY_CLT, SNAC_SDK, MDS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: NT Service\MSSQLFDLauncher
FTSVCPASSWORD: <empty>
HELP: false
IACCEPTSQLSERVERLICENSETERMS: false
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT Service\MsDtsServer110
ISSVCPASSWORD: <empty>
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <empty>
MATRIXNAME: <empty>
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE: <empty>
RSINSTALLMODE: FilesOnlyMode
RSSHPINSTALLMODE: SharePointFilesOnlyMode
RSSVCACCOUNT: NT Service\ReportServer
RSSVCPASSWORD: <empty>
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: <empty>
SQLCOLLATION: Latin1_General_CI_AS
SQLSVCACCOUNT: NT Service\MSSQLSERVER
SQLSVCPASSWORD: <empty>
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: RASHA-VAIO\RASHA
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: false
TCPENABLED: 1
UIMODE: Normal
UpdateEnabled: true
UpdateSource: MU
X86: false
Configuration file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\ConfigurationFile.ini
Detailed results:
Feature: Management Tools - Complete
Status: Passed
Feature: Client Tools Connectivity
Status: Passed
Feature: Client Tools SDK
Status: Passed
Feature: Client Tools Backwards Compatibility
Status: Passed
Feature: Management Tools - Basic
Status: Passed
Feature: SQL Server Data Tools
Status: Passed
Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Data Quality Services
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Full-Text and Semantic Extractions for Search
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: SQL Server Replication
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Master Data Services
Status: Passed
Feature: Distributed Replay Client
Status: Passed
Feature: Distributed Replay Controller
Status: Passed
Feature: Integration Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Integration Services
Component error code: 0x84BB0001
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Data Quality Client
Status: Passed
Feature: Reporting Services - Native
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Reporting Services
Component error code: 0x84BB0001
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Analysis Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Analysis Services
Component error code: 0x80131600
Error description: The service could not be started. Reason: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0x88A466B0%400x857354B0&EvtType=0x88A466B0%400x857354B0
Feature: Reporting Services - SharePoint
Status: Passed
Feature: Reporting Services Add-in for SharePoint Products
Status: Passed
Feature: SQL Browser
Status: Passed
Feature: Documentation Components
Status: Passed
Feature: SQL Writer
Status: Passed
Feature: SQL Client Connectivity
Status: Passed
Feature: SQL Client Connectivity SDK
Status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\SystemConfigurationCheck_Report.htm
I hope it will help you to figure out ...i dont know how to solve this issue ..i have un install and re install more than 5 times.
thank you -
Bizarre Problem: Oracle 10g disconnected
We are facing an bizarre problem in Oracle 10G. We are trying to compile a package specification. As long as there are 10 procedures(program units) in the package it compiles successfully, As soon as we add 11th program unit(come what may a simplest of procedure declaration), It disconnects the session immediately. We asked for alert logs & there is no relevant entry in alert log file.
Please find below the error: -
SQL> @D:\Package_Name.sql
ERROR:
ORA-03114: not connected to ORACLE
create or replace PACKAGE PACKAGE_NAME
ERROR at line 1:
ORA-03135: connection lost contact
Elapsed: 00:00:18.90
ERROR:
ORA-03114: not connected to ORACLE
Elapsed: 00:00:00.00
No errors.
SQL>
Please Help :-(create or replace PACKAGE SCHEMA_NAME.PACKAGE_NAME
IS
-- declare public types and/or object desriptions
TYPE t_str_list IS TABLE OF varchar2(4000)
index by binary_integer;
TYPE rs_type IS REF CURSOR;
global_pkg_name varchar2(30) := 'PACKAGE_NAME';
-- get_formulations_list
function GFL (p_request_id number)
return varchar2
PRAGMA RESTRICT_REFERENCES (GFL, WNDS);
-- Read recordsets for Objects from database
-- Getters for Record Sets (1. Lookup Tables)
-- 1. Get_Countries -- + + +
-- 2. Get_l_numbers -- + + +
-- 3. Get_mk_numbers -- + + +
-- 4. Get_licences -- + + +
-- 5. Get_formulations -- + + +
-- 6. Get_request_x_frm -- + + +
-- 7. Get_generic_names -- + + +
-- 8. Get_global_tm -- + + +
-- 9. Get_local_tm -- + + +
-- 10. Get_requests -- + + +
-- 11. Read_request_data -- + + +
-- 12. Get_Users -- + + +
-- 13. Get_User_Roles -- + + +
-- 14. Read_user_data -- + + +
-- Internal functions
-- 1. Get_User_Type -- +
-- Read Hierarchies for Objects from database
-- 1. Get_Country_Hier -- + + +
-- 2. Get_l_number_Hier -- + + +
-- 3. Get_mk_number_Hier -- + + +
-- 4. Get_licence_Hier -- + + +
-- 5. Get_formulation_Hier -- + + +
-- 7. Get_generic_name_Hier -- + + +
-- 8. Get_global_tm_Hier -- + + +
-- 9. Get_local_tm_Hier -- + + +
-- 10. Get_request_list -- + + +
-- 1.1 Get_global_tm_HStr -- + + +
-- 2.1 Get_Country_HStr -- + + +
-- 3.1 Get_local_tm_HStr -- + + +
-- 4.1 Get_l_number_HStr -- + + +
-- 5.1 Get_mk_number_HStr -- + + +
-- 6.1 Get_licence_HStr -- + - -
-- 7.1 Get_formulation_HStr -- - - -
-- 8.1 Get_generic_name_HStr -- - - -
-- 1. Get_Countries
-- Record set Structure
-- country_id
-- country_name
-- is_active
-- role_id (for non HQ users)
PROCEDURE GC ( p_user_id varchar2
, p_is_active CHAR DEFAULT 'Y'
, r_rs out rs_type )
-- 2. Get_l_numbers
-- Record set Structure
-- l_number_id
-- l_number_desc
-- is_active
PROCEDURE GIN ( p_user_id varchar2
, p_is_active CHAR DEFAULT 'Y'
, r_rs out rs_type )
-- 3. Get_mk_numbers
-- Record set Structure
-- mk_number_id
-- mk_number_desc
-- is_active
PROCEDURE GMN ( p_user_id varchar2
, p_is_active CHAR DEFAULT 'Y'
, r_rs out rs_type )
-- 4. Get_licences
-- Record set Structure
-- licesnce_id
-- licesnce_name
-- licesnce_abrv
-- is_active
PROCEDURE GL ( p_user_id varchar2
, p_is_active CHAR DEFAULT 'Y'
, r_rs out rs_type )
-- 5. Get_formulations
-- Record set Structure
-- formulation_id
-- formulation_name
-- is_active
PROCEDURE GF ( p_user_id varchar2
, p_is_active CHAR DEFAULT 'Y'
, r_rs out rs_type )
-- 6. Get_request_x_frm
-- Record set Structure
-- formulation_id
-- formulation_name
-- request_id
PROCEDURE GRX ( p_user_id varchar2
, p_request_id number
, r_rs out rs_type )
-- 7. Get_generic_names
-- Record set Structure
-- generic_name_id
-- generic_name_text
-- l_number_id
-- l_number_desc
-- mk_number_id
-- mk_number_desc
-- is_active
PROCEDURE GGN ( p_user_id varchar2
, p_is_active CHAR DEFAULT 'Y'
, r_rs out rs_type )
-- 8. Get_global_tm
-- Record set Structure
-- gtm_name_id
-- gtm_name_text
-- generic_name_id
-- generic_name_text
-- l_number_id
-- l_number_desc
-- mk_number_id
-- mk_number_desc
-- is_active
PROCEDURE GGT ( p_user_id varchar2
, p_is_active char default 'Y'
, r_rs out rs_type )
-- 9. Get_local_tm
-- Record set Structure
-- ltm_name_id
-- ltm_name_text
-- request_id
-- country_id
-- country_name
-- generic_name_id
-- generic_name_text
-- is_default
-- is_active
PROCEDURE GLT ( p_user_id varchar2
, p_country_id number DEFAULT 0
, p_is_default CHAR DEFAULT '*'
, p_is_active CHAR DEFAULT 'Y'
, r_rs out rs_type )
-- 10. Get_requests
-- Record set Structure
-- request_id
-- gtm_name_id
-- ltm_name_id
-- licesnce_id
-- requestor_isid
-- hq_isid
-- request_status_id
-- lanch_date
-- change_status_date
-- country_name
-- gtm_name_text
-- ltm_name_text
-- generic_name_text
-- licesnce_name
-- licesnce_abrv
-- l_number_id
-- l_number_desc
-- mk_number_id
-- mk_number_desc
-- is_active
PROCEDURE GR ( p_user_id varchar2
, p_country_id number DEFAULT 0
, p_global_tm number DEFAULT 0
, p_status number DEFAULT 0
, p_is_active CHAR DEFAULT 'Y'
, r_rs out rs_type )
-- 11. Read_request_data
-- Record set Structure
-- request_id
-- gtm_name_id
-- ltm_name_id
-- licesnce_id
-- requestor_isid
-- hq_isid
-- request_status_id
-- lanch_date
-- change_status_date
-- country_name
-- gtm_name_text
-- ltm_name_text
-- generic_name_text
-- licesnce_name
-- licesnce_abrv
-- l_number_id
-- l_number_desc
-- mk_number_id
-- mk_number_desc
-- is_active
PROCEDURE RRD ( p_user_id varchar2
, p_request_id number
, r_rs out rs_type )
END PACKAGE_NAME;
/ -
Good morning , I bought my mac pro 13 ' in 2011 (OX 10.10) , in March 2014 I had to replace the video card , fortunately under warranty.
Today, after only eight months starting with the same problems !
I read online that some mac products in 2011 were put on the market defective , you can get a warranty extension or even a replacement mac?dubem747 wrote:
It looks like your phone has a some virus, use your computer to scan and remove it.
not possible for it to have a virus and a PC would not know how to scan the OS as its protected
Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info.
SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope
Want to thank me? Buy my KnottyRope App here
BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V -
Bizarre Problem for table row deletion.please help
Folks
I am facing a most BIZARRE PROBLEM!!!
I have a table with a deleteButton by the side.
The table has 3 rows
ABC-----DELETE
BCD-----DELETE
VDG-----DELETE
I click on the delete Button of the first row,the record gets deleted from the table,
Now there are 2 records..
BCD-----DELETE
VDG--- -DELETE
I click on the delete Button of the first row,and I get the error
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
The table.getSelectedRow() becomes -1 automatically...
Now if I comment out the Table deletion statements, and I click on any delete Button
i get the correct messages
You clicked row : 1
you clicked row : 2
After deletion of the first record,i am unable to delete the 2nd record,i get the
error above.
any suggestions
ActionListener al = new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println("Table Row clicked is : " + table.getSelectedRow());
// Delete row from window.
((DefaultTableModel)table.getModel()).removeRow(table.getSelectedRow());
table.revalidate();
};after deleting the row call this method
fireTableRowsDeleted()
-Ashish -
Delete rows from table...Bizarre problem.
Folks
i HAVE this bizarre problem.
I hava a Java class which displays data read into a table with a delete
option by the side of each row.
Now lets assume you have 3 rows in the Table.
abc deleteButton
efg deleteButton
xyz deleteButton
When I click the first delete,that row gets deleted from the table.(perfect...)
Now I have 2 rows.
When I click on the first row,I get the error
'You clicked -1'
java.lang.ArrayIndexOutofBoundsException: -1 < 0.
Can anyone tell me why this is happening even though there are rows in the table.???
ActionListener al = new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println("You clicked row : " + table.getSelectedRow());
javax.swing.table.TableModel model = table.getModel();
Object o = model.getValueAt(table.getSelectedRow(),0);
//System.out.print(model.getValueAt(table.getSelectedRow(), 0));
//System.out.println();
MyDeleteFunction(o.toString());
// Delete row from window.
((DefaultTableModel)table.getModel()).removeRow(table.getSelectedRow());
table.revalidate();
table.repaint();Hi ritu,
This class is called
new DisplayCall_IDTodisconnect(hashTable);
its a long file.
its attached below.
The rows are displayed by reading a hashtable into a vector
and the vector is iterated and appended..
public class DisplayCall_IDToDisconnect {
public static JTable createTable(Vector data, String buttonLabel, ActionListener action){
return createTable(data.iterator(), buttonLabel, action);
public static JTable createTable(
Iterator dataIterator,
String buttonLabel,
ActionListener action) {
DefaultTableModel model = new DefaultTableModel() {
public boolean isCellEditable(int row, int col) {
return col == 1;
model.setColumnCount(2);
while (dataIterator.hasNext()) {
Object[] row = { dataIterator.next().toString(), null };
model.addRow(row);
DefaultTableColumnModel columnModel = new DefaultTableColumnModel();
columnModel.addColumn(new TableColumn(0, 100));
columnModel.addColumn(new TableColumn(1, 80,
new TableButtonCellRenderer(buttonLabel),
new TableButtonCellEditor(buttonLabel, action)
JTable table = new JTable(model, columnModel) {
public void valueChanged(ListSelectionEvent e) {
super.valueChanged(e);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
return table;
private static class TableButtonCellRenderer implements TableCellRenderer {
final JButton button;
TableButtonCellRenderer(String buttonLabel) {
button = new JButton(buttonLabel);
public Component getTableCellRendererComponent(
JTable table,
Object value,
boolean isSelected,
boolean hasFocus, int row, int column) {
return button;
private static class TableButtonCellEditor
extends AbstractCellEditor
implements TableCellEditor, ActionListener {
final JButton button;
final ActionListener callback;
TableButtonCellEditor(String buttonLabel, ActionListener callback) {
button = new JButton(buttonLabel);
this.callback = callback;
button.addActionListener(this);
public Component getTableCellEditorComponent(
JTable table,
Object value,
boolean isSelected,
int row, int column) {
return button;
public Object getCellEditorValue() {
return null;
public void actionPerformed(ActionEvent e) {
button.getParent().requestFocus();
callback.actionPerformed(e);
static JTable table;
Vector items;
final ClientManager clientMgr;
// Constructor.
public DisplayCall_IDToDisconnect(Hashtable callLegTable,ClientManager clientMgr){
Vector vCSeqnos = displayCSeqNos(callLegTable);
this.clientMgr = clientMgr;
JFrame frame = new JFrame("Disconnect Options");
/*Vector*/ items = new Vector();
Enumeration vEnum = vCSeqnos.elements();
while(vEnum.hasMoreElements()){
items.add(vEnum.nextElement());
ActionListener al = new ActionListener() {
public void actionPerformed(ActionEvent e) {
//System.out.println("You clicked row ,col: " + table.getSelectedRow()+
// table.getSelectedColumn());
javax.swing.table.TableModel model = table.getModel();
Object o = model.getValueAt(table.getSelectedRow(),0);
System.out.print(model.getValueAt(table.getSelectedRow(), 0));
System.out.println();
closeConnection(o.toString());
// Delete row from window too.
((DefaultTableModel)table.getModel()).removeRow(table.getSelectedRow());
table.revalidate();
table = DisplayCSeqNos.createTable(items, "Disconnect", al);
frame.getContentPane().add(new JScrollPane(table));
frame.pack();
frame.show();
} // End Constructor.
public void closeConnection(String s){
/*1. Disconnect the current session*/
this.clientMgr.disconnectCall(s);
/*2. refresh the Disconnect window*/
this.refreshWindow();
public Vector displayCSeqNos(Hashtable callLegTable){
Enumeration eNum;
String str;
Vector v = new Vector();
eNum=callLegTable.keys();
while(eNum.hasMoreElements()){
str = (String) eNum.nextElement();
//System.out.println("Key : " + str + " Value : " + callLegTable.get(str));
v.addElement(str);
return v;
} // End of displayCSeqNos. -
my ibookg4 suddenly is having quite a bizarre problem today. no problems till yesterday night.
1. i was running firefox and safari today along with ms-word and preview. the word file open was huge (~20mb, had lots of figures/pictures in it). and at some point during doing this, i wanted to save the word document that was open. and thats when for the first time, the 'spinning wheel' came on... subsequently, the computer become amazingly slow, like it would take 5 minutes to save the word document, displaying the " spinning wheel " all the while.
2. closing the word document and quitting word took like 8 minutes. i force quit all the program then.
3. finally, i rebooted the machine a couple of times and also did a filefault scan. i tried to go into the disk utility and tried to check for repair disks... but no avail.. the wheel kept spinning...
5. finally i tried resetting the pram and now the mac does not want to start up. it shows a broken folder link however i want to start up
any ideas what is the problem?
ibook g4 Mac OS X (10.3.9)a complete description for the record./
my ibookg4 (running 10.3.9) suddenly is having quite a bizarre problem today. no problems till yesterday night.
1. i was running firefox and safari today along with ms-word and preview. the word file open was huge (~20mb, had lots of figures/pictures in it). and at some point during doing this, i wanted to save the word document that was open. and thats when for the first time, the 'spinning wheel' came on... subsequently, the computer become amazingly slow, like it would take 5 minutes to save the word document, displaying the " spinning wheel " all the while.
2. closing the word document and quitting word took like 8 minutes. i force quit all the program then.
3. i rebooted the machine a couple of times and also did a filevault scan. i tried to go into the disk utility and tried to check for repair disks... but no avail.. the wheel kept spinning...
4. i tried resetting pram (
http://docs.info.apple.com/article.html?artnum=2238
http://docs.info.apple.com/article.html?artnum=14449)
when the machine started up, a question mark blinked on the screen alternating with a folder symbol.
5. the i tried inserting a diagnostic disc:
http://docs.info.apple.com/article.html?artnum=58042
it took something to the tune of 4 hours for the disk utility to try and recognise the hard disk. however in the end it gave an error: " error on mass storage" : cache and modem was fine. the 'repair file' did not start up and the harddrive did not show up on booting, only the cd did.
6. upon trying to reinstall the OS, the "target" to install the OS was not found.
any ideas what is the problem? what do you guys suggest, how should I go about fixing it. -
it is possible to write something approaching an if..then..else statement in SQL with 'generalized' conditions in the if statement.
Attached is the query for the payment register, in which I've written a series of decode statements, one for each possible value of the payment code. The query works OK - however, its specific and as the number of paycodes expand (and they do), the report won't pick up the new paycode until the code is changed. More importantly, the report won't be correct until someone 'discovers' that a paycode is missing, which might take months.
If I were writing the equivalent of this series of decode statements in Focus, it would be something like this:
DEFINE.......
PAYMED/D12.2 = IF PAYMENT_CD LE 18
THEN PAYMENT_AMT
ELSE 0 ;
PAYIND/D12.2 = IF PAYMENT_CD GE 19 AND PAYMENT_CD LE 49
THEN PAYMENT_AMT
ELSE 0 ;
PAYEXP/D12.2 = IF PAYMENT_CD GE 70
THEN PAYMENT_AMT
ELSE 0 ;
PAYREC/D12.2 = IF PAYMENT_CD GE 50 AND PAYMENT_CD LE 69
THEN PAYMENT_AMT
ELSE 0;
END
IN SQL/PLUS:
SELECT ACCOUNT_NAME,
LOCATION_1,
CLMNT_LAST_NAME,
CLAIM_NBR,
DATE_OF_INJURY,
DATE_CHECK_REGISTER,
PAYEE_NAME_1,
PAYMENT_CD,
SERV_OFC,
CPO_CHECK_NBR,
PAYMENT_FORM,
DECODE(PAYMENT_CD, 20, PAYMENT_AMT, 21, PAYMENT_AMT,
22, PAYMENT_AMT, 23, PAYMENT_AMT, 25, PAYMENT_AMT,
26, PAYMENT_AMT, 27, PAYMENT_AMT, 28, PAYMENT_AMT,
29, PAYMENT_AMT, 30, PAYMENT_AMT, 31, PAYMENT_AMT,
32, PAYMENT_AMT, 33, PAYMENT_AMT, 34, PAYMENT_AMT,
35, PAYMENT_AMT, 36, PAYMENT_AMT, 37, PAYMENT_AMT,
39, PAYMENT_AMT, 40, PAYMENT_AMT, 41, PAYMENT_AMT,
42, PAYMENT_AMT, 43, PAYMENT_AMT, 44, PAYMENT_AMT,
45, PAYMENT_AMT, 46, PAYMENT_AMT, 47, PAYMENT_AMT,
48, PAYMENT_AMT, 49, PAYMENT_AMT, NULL) INDEMNITY,
DECODE(PAYMENT_CD, 0, PAYMENT_AMT, 1, PAYMENT_AMT,
2, PAYMENT_AMT, 3, PAYMENT_AMT, 4, PAYMENT_AMT,
5, PAYMENT_AMT, 6, PAYMENT_AMT, 7, PAYMENT_AMT,
8, PAYMENT_AMT, 9, PAYMENT_AMT, 10, PAYMENT_AMT,
11, PAYMENT_AMT, 12, PAYMENT_AMT, 13, PAYMENT_AMT,
14, PAYMENT_AMT, 15, PAYMENT_AMT, 18, PAYMENT_AMT,
17, PAYMENT_AMT, NULL) MEDICAL,
DECODE(PAYMENT_CD, 70, PAYMENT_AMT, 71, PAYMENT_AMT,
72, PAYMENT_AMT, 73, PAYMENT_AMT, 74, PAYMENT_AMT,
75, PAYMENT_AMT, 76, PAYMENT_AMT, 77, PAYMENT_AMT,
78, PAYMENT_AMT, 79, PAYMENT_AMT, 80, PAYMENT_AMT,
81, PAYMENT_AMT, 82, PAYMENT_AMT, 83, PAYMENT_AMT,
84, PAYMENT_AMT, 85, PAYMENT_AMT, 86, PAYMENT_AMT,
87, PAYMENT_AMT, 88, PAYMENT_AMT, 89, PAYMENT_AMT,
90, PAYMENT_AMT, NULL) EXPENSES,
DECODE(PAYMENT_CD, 50, PAYMENT_AMT, 51, PAYMENT_AMT,
52, PAYMENT_AMT, 53, PAYMENT_AMT, 54, PAYMENT_AMT,
55, PAYMENT_AMT, 56, PAYMENT_AMT, 57, PAYMENT_AMT,
58, PAYMENT_AMT, NULL) RECOVERIES,
DECODE(PAYMENT_FORM, 'N', PAYMENT_AMT, NULL) NONCASH,
DATE_FROM_SERVICE,
DATE_THRU_SERVICE
FROM &INPUT_TABLES
WHERE &SECURITYCOND
DATE_OF_PAYMENT BETWEEN :START_DATE AND :END_DATE
ORDER BY LOCATION_1, CPO_CHECK_NBR
As you can see, this is both much easier to write and covers the possibility of expansion of paycodes (expansions always fit in these defined ranges).
My question is, then, is it possible to write something like this in SQL and, if so, could you give me some sample code? (I'm one of those people who learn best from looking at the code as opposed to a set of instructions)Here is one way you could do it.
Create a table that has columns like:
Payment_code varchar2(2),
Effective_Date Date,
Payment_type varchar2(20),
Expiration_Date Date)
Payment type for example could be
I- indemnity
M- medical
R- recovery
E- expenses
Let the table name for example be PAYMENT_CODE.
The select query would look like
SELECT ACCOUNT_NAME,
LOCATION_1,
CLMNT_LAST_NAME,
CLAIM_NBR,
DATE_OF_INJURY,
DATE_CHECK_REGISTER,
PAYEE_NAME_1,
PAYMENT_CD,
SERV_OFC,
CPO_CHECK_NBR,
PAYMENT_FORM,
DECODE(p.payment_type,'E',PAYMENT_AMOUNT,0) expenses,
DECODE(p.payment_type,'I',PAYMENT_AMOUNT,0) indemnity,
DECODE(p.payment_type,'M',PAYMENT_AMOUNT,0) Medical,
DECODE(p.payment_type,'R',PAYMENT_AMOUNT,0) recoveries,
DECODE(PAYMENT_FORM, 'N', PAYMENT_AMT, NULL) NONCASH
FROM &INPUT_TABLES,
PAYMENT_CODE P
WHERE P.PAYMENT_CODE = SOMEINPUT_TABLE.PAYMENT_CODE
and other conditions
The idea is to group all the payment codes into a few groups to reduce the clutter. If there is ever a change to the payment code, you could modify the table and it will be reflected in your select query. -
My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.
hi
could you tell us what the other app is please -
I have an iMac 27" and am trying to import some videos of a friends wedding into iMovie however one of the movies won't import. It doesn't say why or give any error message or codes.
All of the other movies on the card download with out a problem. The movie in question is not 'corrupt' as you can watch it in iMovie direct from the SD card but as soon as you try to import it, it just says 'error'. iIve tried moving the file to an external drive ( and other variations on this theme) then importing but have had no luck.
Can anyone please help me.The mystery remains....
Thanks for the pointers. The file type is .mts (a proprietry sony one).
I have now found some video converter software (Wondershare and iSkysoft) at a cost. Either will convert this file for me into .mp4. This I can then import into iMovie without any problems. I've checked this on the trial versions and it worked well but without paying am left with a giant watermark in the video
The mystery (which I still havent solved) is why did 20 other .mts files import fine and then this one not?
If you could point me in the direction of some free .mts converter software that would be the cherry on the cake.
Thanks -
I have had my ipad retina for two and a half weeks but since the week end every time i connect to the wifi network it joins then disapears as soon as i open safari for example or just disappears at intermittent intervals....i have my iphone 4s connected to the same wifi network with no such problems.
I have tried resetting the network settings to no avail
Does anyone have any suggestions?
Many thanks in advanced.I have had my ipad retina for two and a half weeks but since the week end every time i connect to the wifi network it joins then disapears as soon as i open safari for example or just disappears at intermittent intervals....i have my iphone 4s connected to the same wifi network with no such problems.
I have tried resetting the network settings to no avail
Does anyone have any suggestions?
Many thanks in advanced. -
Can someone help me with an iCloud problem when I take a picture with my iPhone 4s it some of the times go to my ipad2 but mostly it doesn't can anyone help me out
I'm assuming you have Photo Stream set up of both devices. However, it seems many users are experiencing the same as you - my take is that streaming photos is not foolproof yet.
Maybe you are looking for
-
Excise Invoice for Transfer price
Guru's We have intercompany scenario and the delivering raises excise invoice to ordering plant, but in this case the ship to party is getting different not the sold to party, because of that we are having issues in excise invoice please help sale or
-
Is there a calendar app that will sync HTC one, android Samsuhg tablet and a PC?
Looking for a calendar app that will sync an HTC one M8, a Samsung android Tablet and a desktop PC? If I put an event in one it will find it in the other?
-
Bank reports for Directdeposit Payment advice
Hi All, I have a question about reporting for directdeposit Payment advice. Can anyone explain me, if there is any standard sap report to view the directdeposit or check advices. Thanks. Appreciate it. Regards, Fred
-
Iweb not publishing to correct domain
I am totally new to iweb and have just finished designing my website. I own both web hosting and a domain name with justhost.com I have set up ftp and when i try to publish my site, it does it to the wrong domain name. e.g. my domain is myweb.com the
-
I get a monthly email from BT advising me that my new bill is ready. The problem is that we use OneBill and the account number given isn't my OneBill account number. I've spoken to customer services who can't see that this account number is connected