Request from oracle to MySql using dblink read all rows in the table
HelloI use the heterogeneous connectivity between oracle 10204 to the Mysql database.
I have a database of link on the side of the oracle.
I request a table in MySql with 10 million rows.
His is not serious if I am running:
' Select * from ' CDR_Accounts"@mysql where 'id '= 7675405;
or
Select * from 'CDR_Accounts"@mysql;
There is an index on the column id.
It seems that the Mysql is feteching all rows in the table, all data is transferred to oracle on the dblink and only after the required lines are back to the client.
The /etc/odbcinst.ini file is as follows:
[odbcprd:oracle@odbc /software/oracle]$ cat /etc/odbcinst.ini
[myodbc3]
Description = Mysql connector to mysql version 3.5
Driver = /software/oracle/MysqlOdbc/3.52/lib/libmyodbc3-3.51.25.so
Driver64 = /usr/lib
Setup = /software/oracle/MysqlOdbc/3.52/lib/libmyodbc3S-3.51.25.so
Setup64 = /usr/lib
UsageCount = 1
CPTimeout = 3600
CPReuse =
Please adviceThank you
Initialization of gateway open tha file located in $ORACLE_HOME/hs/admin called init .ora and change HS_FDS_TRACE_LEVEL to HS_FDS_TRACE_LEVEL =
ATTENTION:
Do not forget t turn off after all your tests.
Tags: Database
Similar Questions
-
Stored procedure migration from Oracle to Mysql
Dear all,
Please suggest, is a tool of migration of the stored procedure from oracle to mysql.
I tried a tool like
1 Smart converter.
2. Sql path
3 Mysql Migration Toolkit.
But the procedure may not migrate correctly.
Vincent HBVincent,
I think you're in the wrong place, try to find a MySQL forum; 0) -
Remove the read-only constraint of the table?
Hello
As part of the learning exercise, I ran the following query
change used table read-only;
Employee table is read only State now.
I want to go back to the original state so that I can update and insert the rows in the table.
FYI, I'm using oracle 11g.
Thank youchange used table read write;
-
Delete the row in the Table by using the report link column
Hello
I a report advocating the rows in a table - I would like to for users to be able to delete rows in the table by clicking on the link in the column "ID". I thought about trying to call a process by using a javascript URL (as mentioned in this thread - ) but I don't know how to write the process so that he knows what 'ID' to remove from the table.
Any ideas would be greatly appreciated.
ForrestForrest:
Follow these steps
Create an item hidden on the page P_ID named who said
In the column link definition set the goal URL as the URL as
JavaScript:doDelete(#ID#);
Add this JS ito header HTML of the pageCreate a process page ' on submit ' with the code to delete the record from the table. Subordinate this process by using a "pl/sql expression" type of condtion. Will be the expression of pl/sql
:request='DELETE';
Treat code
delete from
where pk_column=:p_id; //adjust as needed
Add a branch that branches off to the page
CITY
Original title: it's a virus that's causing this?
It happened a few times now. While I use my computer, all applications and the windows are closed at the same time, I am disconnected and the computer is off, as if someone manually stops the computer. I turn on the computer and log in and everything seems to be okay. No data deleted, not that I could find and detect anyway. One day when I turned on the computer, it run chkdsk before doing the usual startup. I use the computer for 2 years and this is the first time, she never did a chkdsk on its own. I used Microsoft Essentials and no viruses were found.
Should I worry?
Hello
You can read the following article and try to download the Microsoft Safety Scanner and perform a full scan on your computer and check.
Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.
Check if there are logs of events related to the issue in the event viewer which may help us to solve the problem of the:
What are the information contained in the logs of the event (Event Viewer)?
How to set current row in the table after use the button tab on inputText
Hi all
My first post.., I am beginner in ADF and I'll try to explain my problem.
For now we use ADF 11 g (11.1.1.4), in a jsff page I have a table with a column of inputText.
On the the inputText valueChangeListener, I invoke a method in a bean viewScope that call an EJB method, make some services to the EJB on the modified line. After that, I update the VO and the table (because other values in the row have been changed) and reset the focus on the inputText even modified by the user with javaScript, because the focus was lost after updating.
So far, everything works fine.
When I use the arrow keys to change the selected line in the table, this is excellent work (focus is always in the inputText next or previous), but if the user tries the key tab allows you to change the current line, the inputText on the line that has the focus, but the current row in the table is not changed (I think that is normal).
My question: How can I change the current line after the tab key in this case?
I don't know if it is really clear, not easy to explain, do not hesitate to ask for more details.
Thanks in advance.Hello
My question: How can I change the current line after the tab key in this case?
Use a client event to listen to the keyboard entry and intercept the tab. Use af:serverListener to call the server to set the rowKey on the table and deliver a PPR for the table to repaint
See example 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples
to learn more on how to use the client listener and the receiving server
Frank
Read all rows in a worksheet except the first
I have a spreadsheet with titles and I want to read a different worksheet with headings and add this info in a simple spreadsheet, but I want to delete all the titles of the apreadsheet of second, third, fourth...
Can someone tell me please how to do this?
I thought maybe if I converted to the worksheet to the search string, and rrplace titles and then return for a spreadsheet of table 2d, this could work. The thing is that I don't know how to get back to a spreadsheet of table 2d of the string with a single vi or in the simplest way possible, without knowing the amount of lines in each apreadsheet.Hello
Read the first line of the second file and discard data. THEN read the remaining lines...
Or read all the lines and remove the first row of the table...I recently changed from 8.1 to win to win 10. Can I transfer is more books from Overdrive to ADE. They are all two authorized the same. Any suggestions?
Try this: right click on the digital edition and run as admin...
Determine the space used for each row in the table
I am trying to determine how much disk space each row in the table will take place (data and indexes). I use sys_guids for my (PK_ID) primary key and foreign key columns (FK_xx), so who are on varchar2 (32).
What is the best way to determine this?
CREATE TABLE STU_ENROLLMENT
(PK_ID VARCHAR2 (32), sys_guid() by default)
CONSTRAINT pk_stu_enrollment
KEY ELEMENTARY SCHOOL
With the HELP of INDEX TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0),.
FK_STU_SCHOOL VARCHAR2 (32)
FK_SCHOOL_CALENDAR VARCHAR2 (32)
FK_PCC_CODE VARCHAR2 (32),
FK_GRADE_LEVEL VARCHAR2 (32),
FK_VOTECH VARCHAR2 (32),
FK_SPECIAL_ED VARCHAR2 (32),
FK_TUITION_CODE VARCHAR2 (32),
FK_HOME_INSTRUCTION VARCHAR2 (32),
FK_DISTRICT VARCHAR2 (32),
FK_PROGRAM_CODE VARCHAR2 (32),
FK_SERVING_SCHL VARCHAR2 (32),
FK_RESPONSIBLE_SCHL VARCHAR2 (32),
FK_ADA_CODE VARCHAR2 (32),
FK_ENROLL_TYPE VARCHAR2 (32),
FK_PCC_REASON VARCHAR2 (32),
STANDARD_DAY NUMBER (3).
PCC_NOTES VARCHAR2 (1000).
USER_FLD1 VARCHAR2 (100),
USER_FLD2 VARCHAR2 (100),
USER_FLD3 VARCHAR2 (100),
USER_FLD4 VARCHAR2 (100),
USER_FLD5 VARCHAR2 (100),
PCC_TRANSACTION_ID VARCHAR2 (32),
TRANSACTION_NUMBER DEFAULT NUMBER '1',
TRANSACTION_TYPE VARCHAR2 (1) DEFAULT 'A,'
DATE OF LAST_UPDATE_DATE,
LAST_UPDATE_USER VARCHAR2 (100))
TABLESPACE sis_express_base
STORAGE (5120 INITIAL
NEXT 5120
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I ON STU_ENROLLMENT (FK_STU_SCHOOL, FK_SCHOOL_CALENDAR, FK_PCC_CODE) SINGLE
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I2 ON STU_ENROLLMENT (FK_SCHOOL_CALENDAR)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I3 ON STU_ENROLLMENT (FK_PCC_CODE)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I4 ON STU_ENROLLMENT (FK_GRADE_LEVEL)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I5 ON STU_ENROLLMENT (FK_VOTECH)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I6 ON STU_ENROLLMENT (FK_SPECIAL_ED)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I7 ON STU_ENROLLMENT (FK_TUITION_CODE)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I8 ON STU_ENROLLMENT (FK_HOME_INSTRUCTION)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I9 ON STU_ENROLLMENT (FK_DISTRICT)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I10 ON STU_ENROLLMENT (FK_PROGRAM_CODE)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I11 ON STU_ENROLLMENT (FK_SERVING_SCHL)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I12 ON STU_ENROLLMENT (FK_RESPONSIBLE_SCHL)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I13 ON STU_ENROLLMENT (FK_ADA_CODE)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I14 ON STU_ENROLLMENT (FK_ENROLL_TYPE)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I15 ON STU_ENROLLMENT (FK_PCC_REASON)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I16 ON STU_ENROLLMENT (PCC_TRANSACTION_ID)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);
CREATE INDEX STU_ENROLLMENT_I17 ON STU_ENROLLMENT (FK_STU_SCHOOL, PCC_TRANSACTION_ID, PK_ID)
TABLESPACE sis_express_index
STORAGE (4096 INITIAL
NEXT 4096
PCTINCREASE 0);Hello
The maximum size of the row in the table
Select table_name, ROUND (sum (data_length) / 1024,2) SIZE_IN_KB
of user_tab_cols
where table_name = 'STU_ENROLLMENT '.
TABLE_NAME GROUP;+
Select index_name table_name, ROUND (sum (CHAR_LENGTH) / 1024,2) SIZE_IN_KB
of USER_IND_COLUMNS
where table_name = 'STU_ENROLLMENT '.
GROUP BY index_name table_name;See the size of the table - method with the average row size
Concerning
HitgonPublished by: hitgon on May 2, 2012 18:19
Published by: hitgon on May 2, 2012 18:39
Select the row of the table using radiobutton
Dear all,
I want to have a column that will a radiobutton and button in the page. When the user clicks the button, so I want a task by taking the data from the selected row. I kept the rows in the table to a single selection. When the user selects the row (without selecting the radiobutton control), then I can also get the current line and get the data from that. But when the user presses the button (in its actionlistener) then how can I know if the user has selected the radiobutton control or not in the current line.
Can someone give me guidance in this problem...
Kind regards
David
JDeveloper 11.1.1.4.0Santosh,
where is the property of the value of the bound radio button for? It is an attribute of the line? If so you can access the value via the current line.Timo
Link from Oracle to MySQL database select only one line
Hello
I created a connection to the batabase Oracle 11.2 to a MySQL database via a database link. The following statement shows that 35 lines are in the mySQL table:
SQL > select count (*) from 'main_pages"@MOREWEB;
COUNT (*)
----------
35
But a normal select statement only return 1 row.
SQL > select 'subject' of 'main_pages"@MOREWEB;
Object
------------------------------------------------
Übersicht: references
I use the mysql-connector-odbc driver - 3.51.30 - winx64. One is the newer version be installed because on Windows Server 2008 R2, I get an error with a missing dll file. The DataDirect ODBC driver is not possible, because we like to use the MySQL-database free one only support for DataDirect enterprise edition.
I have also tried to limit the HS_OPEN_CURSORS or do not limit the HS_FDS_FETCH_ROWS, but there is no difference in the result. I always get only one line.
HS Init.ora
# This is an example of initialization file of the agent that contains the HS settings
# necessary for the database to ODBC gateway
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = moreweb
HS_FDS_TRACE_LEVEL = WE
HS_FDS_FETCH_ROWS = 1
#
# Required for the non-Oracle system environment variables
#
#set < varenv > = < value >
HS trace file Oracle Corporation - MITTWOCH 5 November 2014 13:56:22.066
Heterogeneous Agent release
11.2.0.1.0
Oracle Corporation - MITTWOCH 5 November 2014 13:56:22.066
Version 11.2.0.1.0
HOSGIP to 'HS_FDS_TRACE_LEVEL' returned 'ON '.
HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
HOSGIP to 'HS_FDS_FETCH_ROWS' returned '1 '.
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.
HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.
HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.
HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.
HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.
HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.
HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".
HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.
HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.
HOSGIP to 'HS_FDS_CHARACTER_SEMANTICS' returned 'FALSE '.
HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.
HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.
HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.
HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.
HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.
using mpgw as the default value to "HS_FDS_DEFAULT_OWNER".
HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.
SQL text of hgopars, id = 1, len = 36...
45 00: 53454 C 43542043 4F554E54 282 HAS 2920 [COUNT (*) SELECT]
10: 46524F4D 20606D 61 696E5F70 61676573 [FROM ' main_pages]
20: 60204131 [' A1]
Delayed open until the first fetch.
Deferred execution open.
SQL text of hgopars, id = 1, len = 40...
45 00: 53454 C 43542041 312E6073 75626 has 65 [SELECT A1.' subje(1)]
10: 63746020 46524F4D 20606D 61 696E5F70 [ct' FROM ' main_p]
20: 61676573 60204131 [ages A1]
Delayed open until the first fetch.
Deferred execution open.
Please can someone help me.
Thank you.
Bianca
Bianca,
Everything I've read on this point to a need to install/reinstall the Microsoft Visual C++ Redistributable Package for windows OS 2008.
You will need to download the appropriate version for your microsoft form system. There is a lot of information on this topic. Just
search on the web, and it should help you in the right direction.
Thank you!
MattFX load from Oracle EBS by using FDMEE to HFM
Hi team,
Is it possible for FDMEE to exchange rate of Oracle EBS traction as we are pulling the end balance use native adapter. I think that if we have capabilities of outofbox to do.
Please advise on possible ways to the FX of Oracle EBS to FDMEE traction load. Ask for your help in this.
Kind regards
Roshi
Hello
You can configure FDMEE to extract the EBS exchange rates.
If your target is HFM, you need to create a solution custom, as exchange rates are not loaded automatically:
When the data rule is executed for targets of financial management, the exchange rate applications
source are fulfilled to the amount of FDMEE interface table
AIF_HS_EXCHANGE_RATES. The table of exchange rate of basic money management
is not up-to-date.
BTW, exchange rates are taken from the AIF_HS_EXCHANGE_RATES table.,.
I suggest that take you a look at the section how currencies are processed in the Administrator's guide
See you soon
Migrating from Oracle to MySQL
Hi all
I want to download my oracle to mysql tables tables, someone here has done?
Thank you very much
zxyYou can revoke the granting of the PUBLIC. Of course, who can break any number of things, so you should have a decent amount of work to all of the privileges of law to all the patterns that would need to do.
There are documents of Metalink who walk through it, but I know that you do not want to read the documentation.
Justin
request to retrieve the value of the column and use in the other rows of the table
Hi all
I have a table where I maintain pairs name / value of a particular job. Now, I would like to see some of the values of the rows passed to other rows in a table for example
create job_name_value
(
VARCHAR2 (100) job_name,.
name varchar2 (100),
value varchar2 (100)
);
job_name name value TRGJOB % FPATH / USR/LOCAL/TRGJOB TRGJOB % FDATE CALDATE + 1 TRGJOB $FNAME1% %FPATH.mywatchfile1.%FDATE TRGJOB FNAME2% %FPATH.mywathcfile2.%FDATE TRGJOB % FNAME3 %FPATH.mywatchfile3.%FDATE can we write a sql query to produce output as below the objective is to use the value of fdate and fpath in the remaining lines. If there is no fdate and fpath then value should return such what or we need to use the stored procedure to achieve
/ usr/local/trgjob/mywatchfile1. CALDATE + 1
/ usr/local/trgjob/mywatchfile2. CALDATE + 1
/ usr/local/trgjob/mywatchfile3. CALDATE + 1
Hello
Since it cannot be '% FDATTE' or '% FPATH' (or both) then you need to replace each of them separately. If the other does not, there 'replacement' will do nothing, but this will not affect the result of the other.
Here's a way to do it:
SELECT REPLACE (REPLACE (n.value
'% FPATH.'
p.value | '/'
)
, '% FDATE '.
d.value
) AS output_value
OF job_name_value n
LEFT OUTER JOIN job_name_value p ON p.name = '% f '.
LEFT OUTER JOIN job_name_value d ON p.name = '% FDATE '.
WHERE n.name AS '\%FNAME%' ESCAPE ' \'
;
I hope that answers your question.
If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
Report when the above query is to give erroneous results and explain, using specific examples, how to get the correct results of data provided in these places. If you change the query at all, your postal code.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: https://forums.oracle.com/message/9362002#9362002
Hello
I use Oracle Database 11.2.0.4.
After reading the documentation on how to prevent unwanted table DDL statement.
I found a way to do this in by issuing 'edit the table < table_name > disable table lock'.
Turn it off doesn't work, however I can not re - activate.
The error message is:
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
I want to activate the lock, because I need to add new columns to this table.
I was digging on several threads that have the same problem as mine. But none of them gives any acceptable solution.
Impossible to activate the table lock after disablng it
ALTER table enable table lock blocking
However, a poster responds by quoting the documentation that says: (Note: I can't find what doc says)
'Specify the TABLE LOCK ACTIVATE to activate the table locking, allowing operations on the table DDL. All currently process transactions must commit or roll before Oracle database allows table locking. »
By the way:
1. the table is mine and nobody knows there are (therefore, it would be just me which undoubtedly make any DML at it, and I did not).
2. I've disabled the lock table months ago and tried to turn it back on because I want to add the new column to the table.
It means that I have to wait for that "ALL transactions running" happening on the current scheme being validated or cancelled?
The table itself is located on the stops and never schema of production on which transactions take place continuously.
Is it true that Oracle expects all execute transactions? Is it known bug?
Why would Oracle wait as all transactions which has nothing to do with the underlying table?
Is there no workaround solution to solve this?
Note:
I tried to deactivate - activate the table locking on the development database (which has less transaction) and it works fine.
Kind regards
Buntoro
Your best option might be suspended from the database. If it is an application of type OTP, it must suspend in some secinds, do your DOF, then get out. Your users should not notice. I have described the mechanism here,
--
John Watson
Oracle Certified Master s/n
Maybe you are looking for
-
Portege R500 - anyone using the DVI Port Replicator II on WIndows 7 Beta?
HelloI'm using the beta version of WIndows 7 on my R500 and runnig it's just well except the DVI Port (on the Port Replicator II Slim).I have installed this software Fingreprint, battery bluetooth (which are recommended as a solution by the Action Ce
-
N300 Wireless Router WNR2000v4 slow download speeds
Hello I have Time Warner Cable and pay for 50mps download speed. When it is connected directly to the Modem I get better than 50mps download. When I run through the router wireless using wireless or wired connections download speed slows down slot 10
-
I received this email from the Microsoft account team. I do not use MSN, I don't use or have an account of hot mail I have an xbox live account, I received this email to my home e-mail lists that is provided by my local cable/intenet provider. Is it
-
problem to install adobe reader.
whenever I try to install adobe reader, it installed correctly, but all programs with ikon office became changed to adobe reader and these programs are not start and adobe reader not also working.what can I do now?
-
BlackBerry Hub your device is not compatible with this version
Hello. I and BQ Aquaris X 5 with Android Marshmallow 6.0.1. I can't install the Blackberry Hub + and I get this message: "Your device is not compatible with this version. What is going on? Thank you!