Help: Unable to insert mSata into PCIE slot
Hi, all,
I'm having a problem inserting the mSATA drive into the slot while trying to installing the mSata drive. I"m using a Plextor mSATA SSD (PX-128M5M) but found it's very difficult to insert into the PCI Express slot. I failed several times while trying to plug it in.
I wonder if my PCI Express slot is broken, plesae check picture below and kindly advise how to proceed
Link to image 1
Link to image 2
Moderator note: images totalling more than 50k converted to links per forum rules: Lenovo Community Participation Rules
My ThinkPads: T21, X30, X31, X61, X220
x220 i assume?
a wee bit odd that it looks as though the contact points are touching each other, half of them. if you have a thin card, you could try to slot it in and make sure they can separate. tbh, it looks as though a card was forced in causing the contacts to deform. hopefully the card trick works. good luck!
Similar Messages
-
Unable to insert row into table.
hi all,
here i am using oracle apex 3.2.0.0.0.27 version.
i am unable to insert a row in the database table.when i press a save button i get an error is
0.07:
0.08: S H O W: application="132" page="4" workspace="" request="" session="3286250612369434"
0.14: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
0.15: alter session set nls_language="AMERICAN"
0.16: alter session set nls_territory="AMERICA"
0.16: NLS: CSV charset=WE8MSWIN1252
0.16: ...NLS: Set Decimal separator="."
0.16: ...NLS: Set NLS Group separator=","
0.16: ...NLS: Set date format="DD-MON-RR"
0.17: ...Setting session time_zone to +05:30
0.17: Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY HH:MIPM
0.18: ...NLS: Set date format="DD-MON-YYYY HH:MIPM"
0.19: NLS: Language=en-us
0.21: Application 132, Authentication: CUSTOM2, Page Template: 102166708405540699
0.27: ...Session ID 3286250612369434 can be used
0.27: ...Application session: 3286250612369434, user=COMP
0.28: ...Determine if user "COMP" workspace "16032411264866286" can develop application "132" in workspace "16032411264866286"
0.29: ...Check for session expiration:
0.31: Session: Fetch session header information
0.33: ...Metadata: Fetch page attributes for application 132, page 4
0.34: Fetch session state from database
0.38: Branch point: BEFORE_HEADER
0.39: Fetch application meta data
0.49: Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY HH:MIPM
0.49: ...NLS: Set date format="DD-MON-YYYY HH:MIPM"
0.49: Computation point: BEFORE_HEADER
0.49: Processing point: BEFORE_HEADER
0.49: ...Process "Row_fetch": DML_FETCH_ROW (BEFORE_HEADER) F|#OWNER#:PC_MASTER:P4_PC_ID:PC_ID
0.73: Show ERROR page...
0.73: Performing rollback...
0.79: Processing point: AFTER_ERROR_HEADER
ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
Error UNABLE TO FETCH
OK
please anyone can help me to come out this problem.
thanks
regards,
tipanHi Tipan,
This error isn't due to you pressing save, it occurs when the page reloads because you are trying to fetch a record from a database table and the Primary Key APEX Page Item field doesn't have a value in it. You need to add a condition to your fetch so it only runs when the primary key page item has a value in it.
Hope this helps
Paul -
Urgent help needed in inserting data into a custom table in oracle WorkFlow
Hi
I am trying to get data from the WF and insert into a custom table..
I read that workflow procedures WONT allow commits...
Oracle Workflow will not support autonomous commits in any procedure it calls directly. If you need to perform commits, then embed your SQL in a subprocedure and declare it as an autonomous block. This subprocedure must be capable of being rerun. Additionally, note that Oracle Workflow handles errors by rolling back the entire procedure and setting its status to ERROR. Database updates performed by autonomous commits cannot be rolled back, so you will need to write your own compensatory logic for error handling
Have anyone did this..
Please give me some idea ...It is urgent
I am getting data using getitemattribute..and try to insert it into a custom table
thanks
kpPl do not post duplicate threads - insert dont work in Workflow
Srini -
Please help me in inserting data into table from XML message.
Hi Experts,
Please provide a procedure to implement my below requirement.
Since I am new to queue concept.
[code]- <MESSAGES>
- <MESSAGE ID="3026900">
<MSG_ID>3026900</MSG_ID>
<DT_POSTED>6/20/2013 08:15:48</DT_POSTED>
<POSTED_BY>GPD_MSG_EXTRACTOR</POSTED_BY>
<DT_LAST_QUEUED />
- <MSG>
- <WORK_SET TRANSACTION_ID="@TRANS_ID" TRANSACTION_TYPE="Batch" IS_ACID="@IS_ACID">
- <WORK_UNIT GROUP="LEAD_TIME" ACTION="UPDATE" AFFECTED="LEAD_TIME">
- <RECORDSET TABLE_NAME="LEAD_TIME">
- <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
- <rs:data>
<z:row business_unit_id="3838" geo="AT" sku="A0814818" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
<z:row business_unit_id="202" geo="GB" sku="A0814819" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
<z:row business_unit_id="2828" geo="BE" sku="A0814820" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
</rs:data>
</xml>
</RECORDSET>
</WORK_UNIT>
- <WORK_UNIT GROUP="LEAD_TIME" ACTION="ADD" AFFECTED="LEAD_TIME">
- <RECORDSET TABLE_NAME="LEAD_TIME">
- <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
- <rs:data>
<z:row business_unit_id="202" geo="GB" sku="A0814821" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
<z:row business_unit_id="2828" geo="BE" sku="A0814822" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
</rs:data>
</xml>
</RECORDSET>
</WORK_UNIT>
- <WORK_UNIT GROUP="LEAD_TIME" ACTION="DELETE" AFFECTED="LEAD_TIME">
- <RECORDSET TABLE_NAME="LEAD_TIME">
- <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
- <rs:data>
<z:row business_unit_id="202" geo="GB" sku="A0814817" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
<z:row business_unit_id="2828" geo="BE" sku="A0814816" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
</rs:data>
</xml>
</RECORDSET>
</WORK_UNIT>
</WORK_SET>
</MSG>
</MESSAGE>
</MESSAGES>[/code]
The above XML message is receieved by our oracle queue.Once the message is receieved to our queue.
We have to process the message according to the action(UPDATE ADD DELETE).
From this message we have to process only 3 fields (geo sku lead_time).
These three feilds data should be processed into the SKU_LEAD_TIME table based on the action.
Req1:
IF the action is update then the records should be updated in the "LEAD_TIME_TABLE" table
IF the action is update then the records should be updated in the "LEAD_TIME_TABLE" table
based on the below condition.
[code]UPDATE LEAD_TIME_TABLE SET lead_time= lead time from xml message
WHERE LEAD_TIME_TABLE.SKU=sku from xml message AND LEAD_TIME_TABLE.GEO=geo from xml message;[/code]
Req2:
IF the action is delete then the records should be deleted from the "LEAD_TIME_TABLE" table.
based on the below condition.
[code]DELETE FROM LEAD_TIME_TABLE
WHERE LEAD_TIME_TABLE.SKU=sku from xml message AND LEAD_TIME_TABLE.GEO=geo from xml message;[/code]
Req3:
IF the action is add then the records should be inserted in the "LEAD_TIME_TABLE" and "LEAD_TIME_TABLE_STAGING" table
based on the below conditions.
Req3.1:
If SKU from XML message is available in "SKU_TABLE" table
then the three parameter(GEO SKU LEAD_TIME) values from XML message should be inserted into "LEAD_TIME_TABLE" table.
Req3.2:
If SKU from XML message is not available in "SKU_TABLE" table
then the three parameter(GEO SKU LEAD_TIME) values from XML message should be inserted into "LEAD_TIME_TABLE_STAGING" table.
Req3.3:
Once the new SKU is avilable in "SKU_TABLE" table then the corresponding SKU record should be
inserted into "LEAD_TIME_TABLE" table and that record should be deleted from "LEAD_TIME_TABLE_STAGING" table.
I am posting required scripts and test cases.
[code]CREATE TABLE LEAD_TIME_TABLE(sku VARCHAR2(20),model VARCHAR2(20),class CHAR(1),geo VARCHAR2(6),lead_time NUMBER,created DATE);
CREATE TABLE LEAD_TIME_TABLE_STAGING(sku VARCHAR2(20),geo VARCHAR2(6),lead_time NUMBER);
CREATE TABLE SKU_TABLE(sku VARCHAR2(20),geo VARCHAR2(6),lead_time NUMBER);
INSERT INTO SKU_TABLE VALUES('A0814817','GB',30);
INSERT INTO SKU_TABLE VALUES('A0814818','AT',30);
INSERT INTO SKU_TABLE VALUES('A0814819','GB',30);
INSERT INTO SKU_TABLE VALUES('A0814820','BE',30);
INSERT INTO SKU_TABLE VALUES('A0814821','GB',30);
INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814817','GB',30);
INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814818','AT',20);
INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814819','GB',20);
INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814820','BE',20);
INSERT INTO LEAD_TIME_TABLE_STAGING VALUES('A0814822','BE',30);[/code]
From the above message.
Test case for req3.1:
The action for SKU numbers "A0814821" "A0814822" are insert.
The SKU number "A0814821" is available in SKU_TABLE table.
so the record should be inserted in the LEAD_TIME_TABLE.
[code]SELECT * FROM LEAD_TIME_TABLE;
SKU GEO LEAD_TIME
A0814817 GB 30
A0814818 AT 20
A0814819 GB 20
A0814820 BE 20
A0814821 GB 30[/code]
Test case for req3.2:
The action for SKU numbers "A0814821" "A0814822" are insert.
The SKU number "A0814822" is not available in SKU_TABLE table.
so the record should be inserted in the LEAD_TIME_TABLE_STAGING.
[code]SELECT * FROM LEAD_TIME_TABLE_STAGING;
SKU GEO LEAD_TIME
A0814822 BE 30[/code]
Test case for req3.3:
The action for SKU numbers "A0814821" "A0814822" are insert.
The SKU number "A0814822" is not available in SKU_TABLE table.
Once I insert SKU number "A0814822" in SKU_TABLE table.
The corresponding records automatically should be inserted in the LEAD_TIME_TABLE
and should be deleted from LEAD_TIME_TABLE_STAGING.
[code]SELECT * FROM LEAD_TIME_TABLE_STAGING; --- should return NULL.
SELECT * FROM LEAD_TIME_TABLE;
SKU GEO LEAD_TIME
A0814817 GB 30
A0814818 AT 20
A0814819 GB 20
A0814820 BE 20
A0814821 GB 30
A0814822 BE 30[/code]
Please help me.
Thanks in advance.Hi,
I have resolved this issue.
But I have stuck up in implementing some of the scenarios.
Req1:
IF the action is update then the records should be updated in the "LEAD_TIME_TABLE" table
IF the action is update then the records should be updated in the "LEAD_TIME_TABLE" table
based on the below condition.
UPDATE LEAD_TIME_TABLE SET lead_time= lead time from xml message
WHERE LEAD_TIME_TABLE.SKU=sku from xml message AND LEAD_TIME_TABLE.GEO=geo from xml message;
Req3:
IF the action is add then the records should be inserted in the "LEAD_TIME_TABLE" and "LEAD_TIME_TABLE_STAGING" table
based on the below conditions.
Req3.1:
If SKU from XML message is available in "schema_name.SKU_TABLE" table.
The schema_name.SKU_TABLE table should be selected based on "business_unit_id" of XML message and "sid" of MAPPING table WHERE business_unit_id=sid.
then the three parameter(GEO SKU LEAD_TIME) values from XML message and two fields MODEL,CLASS from SKU_TABLE
should be inserted into "LEAD_TIME_TABLE" table.
Req3.2:
If SKU from XML message is not available in "schema_name.SKU_TABLE" table
The schema_name.SKU_TABLE table should be selected based on "business_unit_id" of XML message and "sid" of MAPPING table WHERE business_unit_id=sid.
then the four parameter(BUSINESS_UNIT_ID GEO SKU LEAD_TIME) values from XML message
should be inserted into "LEAD_TIME_TABLE_STAGING" table.
Req3.3:
Once the new SKU is avilable in "schema_name.SKU_TABLE" table then the corresponding SKU record should be
inserted into "LEAD_TIME_TABLE" table and that record should be deleted from "LEAD_TIME_TABLE_STAGING" table.
The schema_name.SKU_TABLE table should be selected based on "business_unit_id" of LEAD_TIME_TABLE_STAGING and "sid" of MAPPING table WHERE business_unit_id=sid.
I am posting required scripts and test cases.
[code]CREATE TABLE LEAD_TIME_TABLE(sku VARCHAR2(20),model VARCHAR2(20),class CHAR(1),geo VARCHAR2(6),lead_time NUMBER,created DATE);
CREATE TABLE LEAD_TIME_TABLE_STAGING(business_unit_id NUMBER,sku VARCHAR2(20),geo VARCHAR2(6),lead_time NUMBER);
CREATE TABLE SKU_TABLE(sku VARCHAR2(20),model VARCHAR2(20),class VARCHAR2(10));
CREATE TABLE mapping(sid NUMBER,schema_name VARCHAR2(20));
INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814817','GB',30);
INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814818','AT',20);
INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814819','GB',20);
INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814820','BE',20);
INSERT INTO SKU_TABLE VALUES('A0814817','M125','C111');
INSERT INTO SKU_TABLE VALUES('A0814818','M127','A111');
INSERT INTO SKU_TABLE VALUES('A0814819','M126','A111');
INSERT INTO SKU_TABLE VALUES('A0814820','N100','B111');
INSERT INTO SKU_TABLE VALUES('A0814821','P123','B111');
INSERT INTO mapping VALUES(202,'WEDB');
INSERT INTO mapping VALUES(2828,'HR');
INSERT INTO mapping VALUES(3838,'BB');
[/code]
Test case for req3.1:
The action for SKU numbers "A0814821" "A0814822" are insert.
The SKU number "A0814821" is available in schema_name.SKU_TABLE table.
so the record should be inserted in the LEAD_TIME_TABLE.
[code]SELECT * FROM LEAD_TIME_TABLE;
SKU MODEL CLASS GEO LEAD_TIME
A0814817 M125 C111 GB 30
A0814818 M127 A111 AT 20
A0814819 M126 A111 GB 20
A0814820 N100 B111 BE 20
A0814821 P123 B111 GB 30
[/code]
Test case for req3.2:
The action for SKU numbers "A0814821" "A0814822" are insert.
The SKU number "A0814822" is not available in SKU_TABLE table.
so the record should be inserted in the LEAD_TIME_TABLE_STAGING.
[code]SELECT * FROM LEAD_TIME_TABLE_STAGING;
BUSINESS_UNIT_ID SKU GEO LEAD_TIME
2828 A0814822 BE 30[/code]
Test case3.3.3:
The action for SKU numbers "A0814821" "A0814822" are insert.
The SKU number "A0814822" is not available in SKU_TABLE table.
Once I insert SKU number "A0814822" in SKU_TABLE table.
The corresponding records automatically should be inserted in the LEAD_TIME_TABLE
and should be deleted from LEAD_TIME_TABLE_STAGING.
[code]INSERT INTO SKU_TABLE VALUES('A0814822','P123','B111');
SELECT * FROM LEAD_TIME_TABLE_STAGING; --- should return NULL.
SELECT * FROM LEAD_TIME_TABLE;
SKU MODEL CLASS GEO LEAD_TIME
A0814817 M125 C111 GB 30
A0814818 M127 A111 AT 20
A0814819 M126 A111 GB 20
A0814820 N100 B111 BE 20
A0814821 P123 B111 GB 30
A0814822 P123 B111 GB 30[/code]
I am able to implement Req1 and Req3.1 for action UPDATE and INSERT in single merge statement.
However my code is not taking care of all my requirements.
Please find my below code.
[code] CREATE OR REPLACE PACKAGE BODY messg_values_process
AS
procedure ProcessInboundLtimeMessage(p_xml_message XmlType)
is
begin
for work_unit in (
select message.MESSAGE_ID
, work_unit.ACTION
, work_unit.LEADTIME_NODES
from XmlTable(
'/MESSAGES/MESSAGE'
passing p_xml_message
columns
MESSAGE_NO for ordinality
, MESSAGE_ID number path '@ID'
, WORK_UNIT_NODES XmlType path 'MSG/WORK_SET/WORK_UNIT'
) message
, XmlTable(
XmlNamespaces(
'urn:schemas-microsoft-com:rowset' as "rs"
, '#RowsetSchema' as "z"
'/WORK_UNIT'
passing message.WORK_UNIT_NODES
columns
WORK_UNIT_NO for ordinality
, ACTION varchar2(10 char) path '@ACTION'
, LEADTIME_NODES XmlType path 'RECORDSET[@TABLE_NAME="LEAD_TIME"]/xml/rs:data/z:row'
) work_unit
LOOP
CASE work_unit.ACTION
WHEN 'ADD' THEN MergeData(work_unit.LEADTIME_NODES);
WHEN 'UPDATE' THEN MergeData(work_unit.LEADTIME_NODES);
WHEN 'DELETE' THEN RemoveData(work_unit.LEADTIME_NODES);
ELSE null;
END CASE;
END LOOP;
END ProcessInboundLtimeMessage;
procedure MergeData(p_leadtime_nodes XmlType)
is
begin
if (p_leadtime_nodes is not null) then
merge into LEAD_TIME_TABLE old
using(
select *
from XmlTable(
XmlNamespaces(
'urn:schemas-microsoft-com:rowset' as "rs"
, '#RowsetSchema' as "z"
'/z:row[not(@business_unit_id=following-sibling::z:row/@business_unit_id)]'
passing p_leadtime_nodes
columns
ITEM_NO for ordinality
, BUSINESS_UNIT_ID number path '@business_unit_id'
, GEO varchar2(20 char) path '@geo'
, SKU varchar2(20 char) path '@sku'
, LEAD_TIME number path '@lead_time'
) NEW
ON (old.VK_UNIT = new.SKU
AND old.GEO=new.GEO)
when matched then update
set old.LEAD_TIME = new.LEAD_TIME
when not matched then INSERT
( old.VK_UNIT
, old.MODEL
, old.CLASS
, old.GEO
, old.LEAD_TIME
, old.COUNTDOWN
, old.LAST_UPDATED_DATE
values
( new.SKU
,'A123'
,'A1234'
, new.GEO
, new.LEAD_TIME
, 'N'
, sysdate
end if;
exception
when others then
LogDataError(
'MergeData Procedure Failed #: '||chr(10)||sqlerrm
, null
, null
END MergeData;
END messg_values_process;
/[/code]
Please help me.
Thanks. -
Unable to insert rows into the table
My insert statement below is not correct, when i try run, its encoutering error "table or view does not exist".
Basically what i am doing here is collecting the table name in FOR variable which stores the table name in this variable. This variable, i am using as table. I know this is not the proper way, please let me how can insert the complete table rows with the following code.
DROP TABLE TEMP;
CREATE TABLE TEMP AS SELECT * FROM Comp WHERE 1=2;
DECLARE
I INTEGER DEFAULT 1;
S VARCHAR2(50);
begin
for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CABLE%' and TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
INSERT INTO TEMP SELECT * FROM c.TABLE_NAME;
dbms_output.put_line(c.table_name);
end loop;
end;
The above insert statement is not correct. How can i write proper way.
Thanks.
Best Regards
Arshaduser13360241 wrote:
My insert statement below is not correct, when i try run, its encoutering error "table or view does not exist".
Basically what i am doing here is collecting the table name in FOR variable which stores the table name in this variable. This variable, i am using as table. I know this is not the proper way, please let me how can insert the complete table rows with the following code.
DROP TABLE TEMP;
CREATE TABLE TEMP AS SELECT * FROM Comp WHERE 1=2;
DECLARE
I INTEGER DEFAULT 1;
S VARCHAR2(50);
begin
for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CABLE%' and TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
INSERT INTO TEMP SELECT * FROM c.TABLE_NAME;
dbms_output.put_line(c.table_name);
end loop;
end;
The above insert statement is not correct. How can i write proper way.
Thanks.
Best Regards
ArshadSTMT := 'INSERT INTO TEMP SELECT * FROM ';
STMT := STMT || S;
EXECUTE IMMEDIATE STMT; -
Problem Inserting CD into side slot
Trying to load Rosetta Stone CD in to iMac side slot. I've got shiny side of CD facing me, with label side facing away. Is this right? because either way I insert it, it spits out the CD. Any suggestions?
Only the Rosetta Stone. I just input an investing CD i have, and it works great. I posted the issue on rosetta stone website and am waiting for reply. Wondering if i should not have upgraded to Lion but liked the iCloud stuff it offered.
-
Unable to insert rows into ORACLE database using ABAP code
Hai,
I am facing problem while creating a table in Oracle database with 15 attributes in a table. To create a table I am using the classes:
cl_sql_connection -
> to create the connection
cl_sql_statement -
> to execute the query
This I used by reffering the SAP program ADBC_DEMO. Without any trouble I am able to create a Table with 6 attributes by following the same procedure in ABCD_DEMO program but the same is not working for the table with 15 attributes .
Please help me.
Regards,
SwethaHai,
here is my code.
DATA: V_con_name TYPE dbcon-con_name,
con_ref TYPE REF TO cl_sql_connection,
sqlerr_ref TYPE REF TO cx_sql_exception,
c_tabname TYPE string VALUE `TO_DETAILS`,
c_coldefs TYPE string.
DATA: IT_ORA LIKE ZVOP_X_ORA_UPDATE OCCURS 0 WITH HEADER LINE.
V_CON_NAME = 'TVL-DSS-01'.
concatenate '(LGNUM CHAR(3) primary key,'
'TANUM VARCHAR2(10),'
'FLAG CHAR(1),'
'BDATU timestamp(3),'
'TAPOS VARCHAR2(4),'
'MATNR CHAR(18))'
'VLQNR VARCHAR2(10),'
'VLPLA CHAR(10),'
'VLBER CHAR(3),'
'NLPLA CHAR(10),'
'NLBER CHAR(3),'
'VDATE DATE(3) ,'
'BNAME CHAR(12),'
'VTIME DATE(4),'
'PROTYPEFLAG CHAR(1),'
'PROCOMFLAG CHAR(1))'
into c_coldefs separated by space .
TRY.
PERFORM: CONNECT USING V_CON_NAME CON_REF,
CREATE_TABLE USING con_ref c_tabname c_coldefs.
CATCH cx_sql_exception INTO sqlerr_ref.
TB_ERROR-MESSAGE = SQLERR_REF->SQL_MESSAGE.
APPEND TB_ERROR. CLEAR TB_ERROR.
ENDTRY.
form create
form CONNECT using p_con_name TYPE dbcon-con_name
p_con_ref TYPE REF TO cl_sql_connection
RAISING cx_sql_exception.
p_con_ref = cl_sql_connection=>get_connection( p_con_name ).
endform. " CONNECT
form create
form CREATE_TABLE USING p_con_ref TYPE REF TO cl_sql_connection
p_tabname TYPE string
p_coldefs TYPE string
RAISING cx_sql_exception.
DATA:
l_sqlerr_ref TYPE REF TO cx_sql_exception,
l_stmt TYPE string,
l_stmt_ref TYPE REF TO cl_sql_statement.
create a statement object
l_stmt_ref = p_con_ref->create_statement( ).
create the statement string
CONCATENATE
'create table' p_tabname p_coldefs
INTO l_stmt SEPARATED BY space.
execute the DDL command; catch the exception in order to handle the
case if the table already exists
TRY.
l_stmt_ref->execute_ddl( l_stmt ).
CATCH cx_sql_exception INTO l_sqlerr_ref.
IF l_sqlerr_ref->dbobject_exists = 'X'
OR l_sqlerr_ref->internal_error = 1024.
table already exists => drop it and try it again
PERFORM:
drop_table USING p_con_ref p_tabname,
create_table USING p_con_ref p_tabname p_coldefs.
ELSE.
RAISE EXCEPTION l_sqlerr_ref.
ENDIF.
ENDTRY.
endform. " CREATE_TABLE
please do help me
Regards,
Swetha -
Please help with multiple insert query into nested table!!!!
I am having a problem with inserting multiple references to objects into a nested table using the following query:
INSERT INTO TABLE(SELECT Taken_by FROM courses WHERE course_number= 001)
(SELECT REF(p) FROM persons p
WHERE p.enroled_in = 'Computing for Business'
The database says that p.enroled_in is an invalid identifier. I know why this is. This is because the field enroled_in is part of a subtype of person called student_type and the query above is not accounting for this properly. I would like to know the correct syntax to use so I can insert into the nested table wherever a student is enroled into the 'computing for business' course. My full schema is below:
CREATE TYPE person_type;
CREATE TYPE student_type;
CREATE TYPE staff_type;
CREATE TYPE course_type;
CREATE TYPE module_type;
CREATE TYPE address_type AS OBJECT
Street VARCHAR2 (30),
Town VARCHAR2 (30),
County VARCHAR2 (30),
Postcode VARCHAR2 (9)
CREATE TYPE person_type AS OBJECT
Name VARCHAR2 (50),
Address address_type,
DOB DATE
) NOT FINAL;
CREATE TYPE staff_type UNDER person_type
Staff_number NUMBER (2,0)
) FINAL;
CREATE TYPE student_type UNDER person_type (
Student_number NUMBER (2,0),
Enroled_in VARCHAR2(50),
MEMBER FUNCTION getAge RETURN NUMBER
)NOT FINAL;
CREATE OR REPLACE TYPE BODY student_type AS
MEMBER FUNCTION getAge RETURN NUMBER AS
BEGIN
RETURN Trunc(Months_Between(Sysdate, DOB)/12);
END getAge;
END;
CREATE TYPE module_type AS OBJECT
Module_number VARCHAR2(6),
Module_name VARCHAR2(50),
Credit NUMBER(2,0),
Taught_in VARCHAR2(50)
CREATE TYPE students_tab AS TABLE OF REF person_type;
CREATE TYPE modules_tab AS TABLE OF REF module_type;
CREATE TYPE course_type AS OBJECT
Course_number NUMBER (2,0),
Course_name VARCHAR2(50),
Dept_name VARCHAR2(50),
Taken_by Students_tab,
Contains Modules_tab
CREATE TABLE modules OF module_type(
constraint pk_modules primary key (Module_number)
CREATE TABLE courses OF course_type(
constraint pk_courses primary key (Course_number)
NESTED TABLE Taken_by STORE AS students_nt,
NESTED TABLE Contains STORE AS modules_nt;By the way I am using oracle 9i and trying to insert into the nested table data from a subtype (i.e student is a subtype of person)
-
Help trying to insert JScrollPane into code
Yes! It is me again on the same program. I have the program working with a few peoples help on this board. But, I want to make the display look better. So, I thought I would use the JScrollPane component. But, I'm getting a cannot resolve symbol error on the following statement.
f.setContentPane(scrollPane);
The code is below. Any help in getting the JScrollPane to work would be very appreciated.
Code:
import java.util.*;
import mycorejava.Day;
import mycorejava.*;
import myjavastdio.*;
import java.io.*;
import java.text.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class P5AWT extends JFrame
private JTextField inputfile;
private JTextField outputfile;
private JTextArea ta;
private JMenuItem newMT, openMT, saveAsMT, exitMT;
String curFile, filename = "";
int numstaff;
Employee[] staff;
public P5AWT()
super ("P5AWT Starter Program");
addWindowListener(new WindowAdapter()
{ public void windowClosing(WindowEvent e) { System.exit(0); }} );
JMenuBar mb = new JMenuBar ();
setJMenuBar(mb);
JMenu fileMenu = new JMenu ("File");
mb.add(fileMenu);
fileMenu.add (newMT = new JMenuItem ("New"));
newMT.addActionListener( new NewCommand());
fileMenu.add (openMT = new JMenuItem ("Open"));
openMT.addActionListener( new LoadFileCommand());
fileMenu.add (saveAsMT = new JMenuItem ("Save As"));
saveAsMT.addActionListener( new SaveAsFileCommand());
fileMenu.add (exitMT = new JMenuItem ("Exit"));
exitMT.addActionListener( new CloseCommand());
JPanel p3 = new JPanel();
getContentPane().setLayout(new FlowLayout(FlowLayout.CENTER));
ta = new JTextArea(200, 40);
//p3.add(ta);
//getContentPane().add(p3, BorderLayout.CENTER);
JScrollPane scrollPane = new JScrollPane(ta);
f.setContentPane(scrollPane);
// Bail Out
class CloseCommand implements ActionListener {
public void actionPerformed (ActionEvent e) {
System.exit (0);
// New
class NewCommand implements ActionListener {
public void actionPerformed (ActionEvent e) {
ta.setText(" ");
// Load a file into the text area.
class LoadFileCommand implements ActionListener {
public void actionPerformed (ActionEvent e) {
int state;
String msg;
FileDialog file = new FileDialog (P5AWT.this, "Open File", FileDialog.LOAD);
file.setFile ("*.*"); // Set initial filename filter
file.show(); // Blocks
if ((curFile = file.getFile()) != null) {
System.out.println(curFile.substring(curFile.indexOf(".") + 1));
filename = file.getDirectory() + curFile;
setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
doit( filename );
setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
// Load a file into the text area.
class SaveAsFileCommand implements ActionListener {
public void actionPerformed (ActionEvent e) {
int state;
String msg;
FileDialog file = new FileDialog (P5AWT.this, "Save As", FileDialog.SAVE);
file.setFile ("*.*"); // Set initial filename filter
file.show(); // Blocks
if ((curFile = file.getFile()) != null) {
filename = file.getDirectory() + curFile;
setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
saveAs(filename);
setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
public static void main(String[] args)
JFrame f = new P5AWT();
f.setSize(475,400);
f.setVisible(true);
f.show();
public void saveAs(String file)
String emptype = "";
try
PrintWriter fout = Text.create(file); //attempts to open output
for( int x = 0; x < numstaff; x++ )
if (staff != null) emptype = (staff[x].getClass().getName());
if (emptype.equals("Employee"))
staff[x].printToFile(fout);
//ta.append("\n\n******************** MANAGERS ********************\n");
for( int x = 0; x < numstaff; x++ )
if (staff[x] instanceof Manager)
//staff[x] = (Manager)staff[x]; - This is used if access to elements needed outside of class
staff[x].printToFile(fout);
fout.close();
catch(IOException e)
System.out.println("An IO Exception occured!");
public void doit(String file)
String filename = "";
String emptype = "";
String firstname = "";
String lastname = "";
String ssn = "";
String hiredate = null;
String secfirstname = "";
String seclastname = "";
String ofile = "";
numstaff = 0;
int yy = 0;
int mm = 0;
int dd = 0;
double salary = 0;
try
BufferedReader fin = Text.open(file); // attempts to open data file
try
numstaff = Text.readInt(fin); // # of records to set array size
staff = new Employee[numstaff];
for(int x = 0; x <= numstaff; x++) // # of records
emptype = Text.readString(fin);
firstname = Text.readString(fin);
lastname = Text.readString(fin);
ssn = Text.readString(fin);
salary = Text.readDouble(fin);
yy = Text.readInt(fin);
mm = Text.readInt(fin);
dd = Text.readInt(fin);
if(emptype.equals("M"))
secfirstname = Text.readString(fin);
seclastname = Text.readString(fin);
staff[x] = new Manager( emptype, firstname, lastname, ssn, salary,
yy, mm, dd, secfirstname, seclastname);
else
staff[x] = new Employee(emptype, firstname, lastname, ssn, salary,
yy, mm, dd);
staff[x].raiseSalary(5);
catch (EOFException e)
ta.append("******************** EMPLOYEES ********************\n");
for( int x = 0; x < numstaff; x++ )
if (staff != null) emptype = (staff[x].getClass().getName());
if (emptype.equals("Employee"))
staff[x].printToAwt(ta);
ta.append("\n\n******************** MANAGERS ********************\n");
for( int x = 0; x < numstaff; x++ )
if (staff[x] instanceof Manager)
//staff[x] = (Manager)staff[x]; - This is used if access to elements needed outside of class
staff[x].printToAwt(ta);
catch (FileNotFoundException e) // file not found, what the heck is this e thing
System.out.println("The file: " + file + " doesn't exist! ABORTING!");
catch(IOException e)
System.out.println("An IO Exception occured!");
class Employee
private NumberFormat coolsalary = NumberFormat.getCurrencyInstance(Locale.US);
public Employee(String emptype, String fn, String ln, String ssn, double s, int yy, int mm, int dd)
type = emptype;
fname = fn;
lname = ln;
salary = s;
social = ssn;
year = yy;
day = dd;
month = mm;
hireDay = new Day(year,month,day);
public void print()
System.out.println();
System.out.print(fname + " " + lname + "\t" + social + " " + coolsalary.format(salary) + " " + hireDay.toString()); }
public void printToFile(PrintWriter out)
out.println();
out.print(fname + " " + lname + "\t" + social + " " + coolsalary.format(salary) + " " + hireDay.toString());
public void printToAwt(javax.swing.JTextArea ta)
ta.append("\n");
ta.append(fname + " " + lname + "\t" + social + " " + coolsalary.format(salary) + " " + hireDay.toString());
public void raiseSalary(double byPercent)
salary *= 1 + byPercent / 100;
public int hireYear()
{ return hireDay.getYear();
public String type;
public String fname;
public String lname;
public double salary;
public String d;
public String social;
public int year;
public int month;
public int day;
public Day hireDay;
private Date date;
class Manager extends Employee
public Manager(String emptype, String fn, String ln, String ssn, double s, int yy, int mm, int dd, String fsec, String lsec)
super(emptype, fn, ln, ssn, s, yy, mm, dd);
secretaryfName = fsec;
secretarylName = lsec;
public void raiseSalary(double byPercent)
{ // add 1/2% bonus for every year of service
Day today = new Day();
double bonus = 0.5 * (today.getYear() - hireYear());
super.raiseSalary(byPercent + bonus);
public void print()
{ super.print();
System.out.print(" " + getName());
public void printToAwt(javax.swing.JTextArea ta)
super.printToAwt(ta);
ta.append(" " + getName());
public void printToFile( PrintWriter out)
super.printToFile(out);
out.print(" " + getName());
public void setSecretaryName(String fn, String ln)
{ secretaryfName = fn;
secretarylName = ln;
public String getName()
{ return secretaryfName + " " + secretarylName;
private String secretaryfName;
private String secretarylName;Alright, I feel like the biggest idiot that ever walked the earth. Thank you for your help.
-
Unable to insert new table in report
Hi All,
i am unable to insert object into report, i have already added 2 objects now as per requirement i need to add 2 new object just below execting objects.
first 2 object data reached upto 6th page
please advise
Thanks in advance
Ranjeethi all still i am facing same error i am sharing snap shot for that
in BO and in excel
please reply how we can resolve this issue
Regards,
Ranjeet -
Inserting Image into a BLOB column in Oracle9i
Hi,
I am unable to insert image into a BLOB column. I am using Forms 6i REL 2 and Oracle 9i. But I could do it on Oracle 8i with same Forms version.
Same thing is true for CLOB in 9i.
Would you please try with this code?
TABLE
Create table x
(Id number,
Name CLOB,
Pict BLOB);
WHEN-BUTTON-PRESSED trigge
declare
x varchar2(265);
begin
x := get_file_name;
read_image_file (x, 'GIF', 'picture.pict');
end;
Take care,
TarekForms 9i and Oracle 9i work fine together for this case.
-
Inserting images into form.
Hi, i am new to midlet programming.
Can anybody help me in inserting images into forms.
And how do we set a thumbnail view in a form.
Thanks.Hello,
use
Image tmp = Image.CreateImage ("/com/...../t.jpg");
Form f = new Form ("title here");
f.append (tmp);
//if u want to insert it after loading the form use
f.insert (index,tmp);
Good Luck,
Rawad -
How to insert data into the BLOB column
Hi All,
Can anyone help me to insert data into the BLOB data type column?
The table structure is
CREATE TABLE XXATFL_DM_FORCAST_STG
TASK_ID NUMBER,
USER_ID NUMBER,
CREATED_BY NUMBER(15),
CREATION_DATE DATE,
LAST_UPDATED_BY NUMBER(15),
LAST_UPDATE_DATE DATE,
LAST_UPDATE_LOGIN NUMBER(15),
RECORD_STATUS VARCHAR2(1 BYTE),
ERROR_MESSAGE VARCHAR2(4000 BYTE),
DATA_FILE BLOB
I want to insert data in the DATA_FILE column. and this insert statement will in inside a procedure.
Please help me as soon as possible as this is very urgent for me
Thanks & Regards,
Chandani tried like this
sql> insert into tbl values(1, utl_raw.cast_to_raw('D:\pictures\pic2.bmp'));
1 record created.
sql>select * from tbl;
sp2-0678:Column or attribute type can not be displayed by SQL*PLUS
sql>
is this saving only path or bmp file on that path?
if it is saving bmp file, in which format and how can we retrive it?
Edited by: user8967883 on Mar 31, 2010 12:57 PM -
Hi, I have Sound Blaster Audigy 4.
I have 5 PCI slots and all of them are free. Does it matter, what slot I put the Audigy 4 in?
Are there any performance differences between the PCI slots?Skynet06 wrote:
Well, I now disabled all the unnecessary devices (COM ports, USB ports, FireWire ports, etc.) Let?s see, IRQ?s 2,3,4,5,7,0,,8,9 seems to be free. I have Asus A8V Deluxe motherboard. This info is from the manual: "IRQ assignments for this motherboard" INT A INT B INT C INT D PCI Slot shared PCI Slot 2 shared PCI Slot 3 shared PCI Slot 4 used PCI Slot 5 shared Gigabit LAN shared Onboard RAID shared Onboard 394 shared Serial ATA shared AGP Slot shared Manual says that IRQ 5?s standard function is for soundcard (sometimes LPT2) Manual doesn?t say which PCI Slot uses IRQ 5.Message Edited by Skynet06 on 0-2-2006 07:46 PM
If you do not have SATA HD's in use and/or RAID set up then you can disable those controllers and put your sound card into PCI slot 3.
The other 2 options to put your card into are
- slot 2 which is shared with your onboard NIC (disable NIC on Device Manager when you play 'heavy' games. You can also change the PCI latench for nic to 0 and increase PCI latency for sound card to 64 or 28 (link to DL PCI Latency tool can be found if you search this forum)
- slot 4 which is shared with some 'unknown' controller/device/other action ?
For the IRQ 5 question; you find explanation for this if you searcg for terms StandardPC and ACPI.
jutapaMessage Edited by jutapa on 0-22-2006 06:36 AM -
Unable to insert pictures on technet for details info on my curernt issue
Hi I am unable to insert images into a post I am trying to reply to. I have already verified my email address under "My Settings".
All future people who find this thread - Click the link below and look for the current verification thread as a sticky:
https://social.technet.microsoft.com/Forums/en-US/home?forum=reportabug
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)
Maybe you are looking for
-
Error when opening =any= PDF with Reader
Hi! Since installing the new Reader software, I keep getting the same error message whenever I try to open =any= PDF, from those on my system for some time to those just downloaded. The error message says: Attempt to access invalid address I can ope
-
I accidently double purchased an album on itunes, can I get a refund?
I accidently double purchased an album on itunes, can I get a refund?
-
Hello all, I did some searching and found no definitive answer.. I am shooting HD video with a Sanyo Xacti VPC-CS1 in 1080p. When I am done shooting, I upload it to my desktop and try to play it from there. It opens up Quicktime and starts to play bu
-
Ichat & msn messenger problems
Is there anyway that I can set my status to invisible on iChat? Also- was not sure where to put this next question. On msn messenger for mac- when I try and change the emoticons, either add or remove some from my list, it states that I am only allowe
-
How to find erroneous records in PSA in BI 7.0
In BW 3.5 if load fails for some reason like lower case or unidentified character data is edited in PSA n loaded from there. We have an option to check for only erroneous records in PSA separately. How can that be possible in BI 7,0 because loadin