Cannot export TEXT Index preferences via datapump
Hello
Source db 10.2.03
Source o/s: Win 2003
Target db: 12.2.0.1
O/s goal: win 2012
Please bear with me, since I am new to the Oracle TEXT and I do not have a background of developer side Oracle.
I took a datapump against my user on the source db schema and doesn't have a datapump imported on target db, and it does not create index on one of the table (received error DRG-10700), doing some research on Google and searching through Oracle metalink, I found that my table contains a search index of text for which certain preferences ctx that are present in the source never made to target db in order to solve the problem, I had to create these preferences manually on target db, so my question is does anyone know why datapump exported not ctx default preferences?
Here is a post that I found to be useful, which recommended to script the source db and recreate it on target db.
https://community.Oracle.com/thread/2152091?start=0
Is it reasonable to assume that datapump doesn't handle/export ctx preferences?
-Learner
This post may be useful - https://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:7469700400346057467
Tags: Database
Similar Questions
-
Passport for blackBerry cannot send or receive pictures via text
Just received my passport and cannot send or receive pictures via text messages... Tried rebooting, and at that time there the image I try to send a text says "interrupted by restart send" even if the consignment was at least an hour earlier... Frustrated...
In respect of the advance...
Send the text must be sms unless you plan to send messages of msm.
Also the title of advance, to informed AFN and MMSC URL
Without these two informed it will not work.
-
bug using dbms_redefinition on table with the altered text index?
I think I can found a bug when you use DBMS_REDEFINITION on a table with a text index that has been modified using ALTER INDEX index-name REBUILD PARAMETERS (REPLACE...). It seems that DBMS_REDEFINITION does not recognize the syntax with REPLACE and redefining fails. However, if I remove the text index and re-create it with all the parameters set during the initial creation and no ALTER INDEX command, then redo the redefinition, it works correctly. I have provided below a script that reproduces the problem, then use workaround mentioned. I have provided a copy of the script and executing the script separately, so that it can be copied and pasted to reproduce the problem. It is a simplification of a problem which has emerged over the diagnosis of a larger problem presented by someone on another forum, where the objective was to perform a loop on a group of tables that meet certain criteria and change some columns varchar2, nvarchar2 columns of these tables, where there are indexes in full text on the other columns in the tables and indexes have been changed using the syntax above. This seems to be a bug or am I missing something or is at - it an easier solution for the redefinition?
-version:
-run the script:SCOTT@orcl_11gR2> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for 64-bit Windows: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production 5 rows selected. SCOTT@orcl_11gR2>
-script:SCOTT@orcl_11gR2> -- table, data, altered text index: SCOTT@orcl_11gR2> CREATE TABLE t_test 2 (col1 NUMBER PRIMARY KEY, 3 col2 VARCHAR2 (10), 4 col3 CLOB) 5 / Table created. SCOTT@orcl_11gR2> INSERT INTO t_test VALUES (1, 'A', 'test data') 2 / 1 row created. SCOTT@orcl_11gR2> CREATE INDEX i1 ON t_test (col3) INDEXTYPE IS CTXSYS.CONTEXT 2 / Index created. SCOTT@orcl_11gR2> ALTER INDEX i1 REBUILD PARAMETERS ('REPLACE SYNC (ON COMMIT)') 2 / Index altered. SCOTT@orcl_11gR2> SELECT * FROM t_test WHERE CONTAINS (col3, 'test data') > 0 2 / COL1 COL2 COL3 ---------- ---------- ---------- 1 A test data 1 row selected. SCOTT@orcl_11gR2> -- redefinition that fails: SCOTT@orcl_11gR2> CREATE TABLE t_test_interim 2 (col1 NUMBER, 3 col2 NVARCHAR2 (10), 4 col3 CLOB) 5 / Table created. SCOTT@orcl_11gR2> DECLARE 2 v_num_errors NUMBER; 3 BEGIN 4 DBMS_REDEFINITION.CAN_REDEF_TABLE 5 (USER, 'T_TEST', DBMS_REDEFINITION.CONS_USE_PK); 6 DBMS_REDEFINITION.START_REDEF_TABLE 7 (USER, 'T_TEST', 'T_TEST_INTERIM', 8 'COL1 COL1,TO_NCHAR(COL2) COL2,COL3 COL3', 9 DBMS_REDEFINITION.CONS_USE_PK); 10 DBMS_REDEFINITION.SYNC_INTERIM_TABLE 11 (USER, 'T_TEST', 'T_TEST_INTERIM'); 12 DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS 13 (USER, 'T_TEST', 'T_TEST_INTERIM', 14 DBMS_REDEFINITION.CONS_ORIG_PARAMS, 15 TRUE, TRUE, TRUE, FALSE, v_num_errors, TRUE); 16 DBMS_REDEFINITION.FINISH_REDEF_TABLE 17 (USER, 'T_TEST', 'T_TEST_INTERIM'); 18 END; 19 / DECLARE * ERROR at line 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-11000: invalid keyword REPLACE ORA-06512: at "SYS.DBMS_REDEFINITION", line 1364 ORA-06512: at "SYS.DBMS_REDEFINITION", line 2025 ORA-06512: at line 12 SCOTT@orcl_11gR2> -- clean up the mess: SCOTT@orcl_11gR2> DROP MATERIALIZED VIEW t_test_interim 2 / Materialized view dropped. SCOTT@orcl_11gR2> DROP TABLE t_test_interim CASCADE CONSTRAINTS 2 / Table dropped. SCOTT@orcl_11gR2> BEGIN 2 DBMS_REDEFINITION.ABORT_REDEF_TABLE 3 (USER, 'T_TEST', 'T_TEST_INTERIM'); 4 END; 5 / PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> -- drop and recreate index with all parameters without altering: SCOTT@orcl_11gR2> DROP INDEX I1 2 / Index dropped. SCOTT@orcl_11gR2> CREATE INDEX I1 ON T_TEST (COL3) INDEXTYPE IS CTXSYS.CONTEXT 2 PARAMETERS ('SYNC (ON COMMIT)') 3 / Index created. SCOTT@orcl_11gR2> -- redo redefinition: SCOTT@orcl_11gR2> CREATE TABLE t_test_interim 2 (col1 NUMBER, 3 col2 NVARCHAR2 (10), 4 col3 CLOB) 5 / Table created. SCOTT@orcl_11gR2> DECLARE 2 v_num_errors NUMBER; 3 BEGIN 4 DBMS_REDEFINITION.CAN_REDEF_TABLE 5 (USER, 'T_TEST', DBMS_REDEFINITION.CONS_USE_PK); 6 DBMS_REDEFINITION.START_REDEF_TABLE 7 (USER, 'T_TEST', 'T_TEST_INTERIM', 8 'COL1 COL1,TO_NCHAR(COL2) COL2,COL3 COL3', 9 DBMS_REDEFINITION.CONS_USE_PK); 10 DBMS_REDEFINITION.SYNC_INTERIM_TABLE 11 (USER, 'T_TEST', 'T_TEST_INTERIM'); 12 DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS 13 (USER, 'T_TEST', 'T_TEST_INTERIM', 14 DBMS_REDEFINITION.CONS_ORIG_PARAMS, 15 TRUE, TRUE, TRUE, FALSE, v_num_errors, TRUE); 16 DBMS_REDEFINITION.FINISH_REDEF_TABLE 17 (USER, 'T_TEST', 'T_TEST_INTERIM'); 18 END; 19 / PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> DROP TABLE t_test_interim CASCADE CONSTRAINTS 2 / Table dropped. SCOTT@orcl_11gR2> -- results: SCOTT@orcl_11gR2> DESC t_test Name Null? Type ----------------------------------------- -------- ---------------------------- COL1 NUMBER COL2 NVARCHAR2(10) COL3 CLOB SCOTT@orcl_11gR2> COLUMN col3 FORMAT A10 SCOTT@orcl_11gR2> SELECT * FROM t_test WHERE CONTAINS (col3, 'test data') > 0 2 / COL1 COL2 COL3 ---------- ---------- ---------- 1 A test data 1 row selected. SCOTT@orcl_11gR2> -- clean-up: SCOTT@orcl_11gR2> DROP TABLE t_test 2 / Table dropped. SCOTT@orcl_11gR2>
-- table, data, altered text index: CREATE TABLE t_test (col1 NUMBER PRIMARY KEY, col2 VARCHAR2 (10), col3 CLOB) / INSERT INTO t_test VALUES (1, 'A', 'test data') / CREATE INDEX i1 ON t_test (col3) INDEXTYPE IS CTXSYS.CONTEXT / ALTER INDEX i1 REBUILD PARAMETERS ('REPLACE SYNC (ON COMMIT)') / SELECT * FROM t_test WHERE CONTAINS (col3, 'test data') > 0 / -- redefinition that fails: CREATE TABLE t_test_interim (col1 NUMBER, col2 NVARCHAR2 (10), col3 CLOB) / DECLARE v_num_errors NUMBER; BEGIN DBMS_REDEFINITION.CAN_REDEF_TABLE (USER, 'T_TEST', DBMS_REDEFINITION.CONS_USE_PK); DBMS_REDEFINITION.START_REDEF_TABLE (USER, 'T_TEST', 'T_TEST_INTERIM', 'COL1 COL1,TO_NCHAR(COL2) COL2,COL3 COL3', DBMS_REDEFINITION.CONS_USE_PK); DBMS_REDEFINITION.SYNC_INTERIM_TABLE (USER, 'T_TEST', 'T_TEST_INTERIM'); DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS (USER, 'T_TEST', 'T_TEST_INTERIM', DBMS_REDEFINITION.CONS_ORIG_PARAMS, TRUE, TRUE, TRUE, FALSE, v_num_errors, TRUE); DBMS_REDEFINITION.FINISH_REDEF_TABLE (USER, 'T_TEST', 'T_TEST_INTERIM'); END; / -- clean up the mess: DROP MATERIALIZED VIEW t_test_interim / DROP TABLE t_test_interim CASCADE CONSTRAINTS / BEGIN DBMS_REDEFINITION.ABORT_REDEF_TABLE (USER, 'T_TEST', 'T_TEST_INTERIM'); END; / -- drop and recreate index with all parameters without altering: DROP INDEX I1 / CREATE INDEX I1 ON T_TEST (COL3) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('SYNC (ON COMMIT)') / -- redo redefinition: CREATE TABLE t_test_interim (col1 NUMBER, col2 NVARCHAR2 (10), col3 CLOB) / DECLARE v_num_errors NUMBER; BEGIN DBMS_REDEFINITION.CAN_REDEF_TABLE (USER, 'T_TEST', DBMS_REDEFINITION.CONS_USE_PK); DBMS_REDEFINITION.START_REDEF_TABLE (USER, 'T_TEST', 'T_TEST_INTERIM', 'COL1 COL1,TO_NCHAR(COL2) COL2,COL3 COL3', DBMS_REDEFINITION.CONS_USE_PK); DBMS_REDEFINITION.SYNC_INTERIM_TABLE (USER, 'T_TEST', 'T_TEST_INTERIM'); DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS (USER, 'T_TEST', 'T_TEST_INTERIM', DBMS_REDEFINITION.CONS_ORIG_PARAMS, TRUE, TRUE, TRUE, FALSE, v_num_errors, TRUE); DBMS_REDEFINITION.FINISH_REDEF_TABLE (USER, 'T_TEST', 'T_TEST_INTERIM'); END; / DROP TABLE t_test_interim CASCADE CONSTRAINTS / -- results: DESC t_test COLUMN col3 FORMAT A10 SELECT * FROM t_test WHERE CONTAINS (col3, 'test data') > 0 / -- clean-up: DROP TABLE t_test /
No real workaround DBMS_REDEFINITION uses function DBMS_METADATA. GET_DDL() and a string of invalid parameter is returned due to known bugs when you use the ALTER INDEX REBUILD with parameter REPLACE; try to avoid changing the index with REPLACE if you export or use DBMS_REDEFINITION for this table/index.
Note to change the text index metadata, to change the existing class preference, you can use the REPLACE METADATA, IE
ALTER INDEX i1 REBUILD PARAMETERS ("replace metadata sync (on commit)" ");
Will not rebuild the index so that your DOF is to rebuild the index
ALTER INDEX i1 REBUILD PARAMETERS ('REPLACE SYNC (ON COMMIT)")
-
Mail stuck in the loop. Cannot access same Mail preferences!
Hello to you all. Can anyone help? I'm trying to set up Mail (in lieu of Thunderbird) I want to use the possibilities of synchronizing with Mail on my other Apple devices. The title says it all, and I have attached a screenshot of what I see. Impossible to do anything, except to force them to leave cannot even open Mail preferences! I'm on iMac with El Capitan Version 10.11.3 Mail Version 9.2 (3112). Henry
Hi Aitchb65,
Thank you for your participation in the communities of Support from Apple.
I see that the mail is stuck in a loop and the opening of many windows unexpectedly. Try to run Mail in 'safe mode' by following these steps:
Open Mail and immediately hold down the SHIFT key until the Mail is opened. This causes the Mail to open without any message or box to the selected letters.
Of Mail if closes unexpectedly when displaying certain messages.
If the Mail normally opens, try to update your SMTP settings -Mail (El Capitan): list of outgoing mail server settings.
You can also delete email accounts in Mail preferences and start over after export and save all important messages. To help in this part, see Mail (El Capitan): Configure Mail with your email accounts and Mail (El Capitan): import / export the mailboxes.
Sincerely.
-
Cannot export, asking for subscription
I just bought adobe pdf export, but when I try to convert a word file,
He has sent me to the payment page and tells me to upgrade. I am connected to my account, and it shows I have the product
Hi maryt84224028 ,
Could you please let us know how you use Adobe PDF - Acrobat Reader services or via a Web browser?
Also, visit these links that deal with the same issue:
Thank you
Shivam
-
ORACLE TEXT INDEX ON COLUMN VARCHAR2
Hi all
I find a search in our application very slow so I thought using ORACLE TEXT CTXCAT index based search but I find some inconsistencies. How can this be avoided... The following query should not return if I can replace with the text of the oracle, but I find few values... why result... I also gave some results of the sample below...
SELECT first_name
Of uc_partner_ms
WHERE
Upper (first_name) LIKE '% WIE % '.
less
SELECT first_name
Of uc_partner_ms
WHERE CATSEARCH (name,'* wie *', null) > 0
RESULTS...
Hans-Werner Mrowiec
Heinz Oesterwiemann GmbH
Helmut Froitzheim GmbH, Neuwied
Heribert Schwies
Hermann Twieling GmbH & Co. KG
Breitwieser Horst
Horst-Dieter Swie
The script used to create indexes is
Start
ctx_ddl.create_preference ('mylex', 'BASIC_LEXER');
ctx_ddl.set_attribute ('mylex', 'index_themes', 'NO');
ctx_ddl.set_attribute ('mylex', 'mixed_case', 'NO');
end;
CREATE INDEX partner_index ON uc_partner_ms (first name)
INDEXTYPE IS CTXSYS. CTXCAT
parameters ('mylex LEXER');
Where am I wrong that I couldn't guess a trend in the other that all results be lowercase...(1) what is the difference
tag brings in the query? This is the QUERY MODEL, which allows you to use the CONTEXT GRAMMAR on the CTXCAT index, as if you were using CONTAINS. There are examples in the documentation here:
http://download.Oracle.com/docs/CD/B19306_01/text.102/b14218/csql.htm#i1000002
(2) is it a good idea to replace catsearch for like operator leader %?
The wildcard character for a CATSEARCH operator on a CTXCAT index is the asterisk. The wildcard character for an operator CONTAINS a CONTEXT index is a percent sign. CATSEARCH does not support major wildcards, you can use a word followed by an asterisk, but not preceded by an asterisk. The percent sign is not a valid wildcard with CATSEARCH. However, when you use the query template and specify GRAMMAR = "CONTEXT". Then, it's as if you were using a CONTAINS operator with a CONTEXT index, so you can use a wildcard of beginning and the % sign is the wildcard character. You can use AS with signs of percentage before and after, but it is likely to be very slow, because it cannot use an index. If the main characters using generic is going to be a frequent requirement, then you would probably be better with a hint of CONTEXT with a BASIC_WORDLIST valued SUBSTRING_INDEX true for optimal speed.
(3) also, I read in 10 g, the maximum number of rows returned is only 15000. is this true?
N ° you probably read about the WILDCARD_MAXTERMS of 15,000 in 10 g limit. This is the maximum number of separate tokens (not lines) that can match a wildcard character without producing an error. In 11g the maximum is 50,000. The default values are lower. If you want to allow a large number of generic searches that match a large number of chips, then you probably assign the WILDCARD_MAXTERMS the most. However, there will always be some queries that are too general, you should plan to trap the error and returns a comprehensible message to your user, asking them that their search is too broad and to enter a value for more specific search.
-
Cannot open email in Hotmail via Firefox. I have Vista installed on the pc and Windows 7 on the laptop, but cannot access all the features of Hotmail. I tried to clear the cache and restart Firefox, but I still cannot use Hotmail.
Not this problem when I go to Internet Explorer.
Hello, it was noted that the foxit pdf plugin is causing this issue. You can disable this plugin in firefox > addons > plugin until what foxit offers a patch/update for the plugin.
-
FTP problem
I set up ftp in iis for the file transfer. On the pc that I am currently in place I cannot transfer files to it via ftp. He says that the password is not accepted. When I look in the properties of the default ftp sites ftp I noticed that the Directory Security tab is not there as on the other pc. How to return this tab or is it the windows software that's not fair. I am running windows XP 2002 SP2 on it and I've updated to SP3. I have no idea.Hello
I suggest you to send your query to the link for assistance.
-
Cannot print text in Windows Mail
Hello
I searched different forums about Windows Mail without success. My question is if it is normal that Windows Mail (in Vista Business) does not (pending) project e-mail messages being printed in the "print"option in the file menu is constantly dimmed? ".
Hello
You cannot print text in Windows Mail. ... It is normal that you cannot print the messages sent and received... the print option is grayed out in the drafts.
-
BB10 Webworks app cannot call the index page
Hi all
I work on the BB 10 Webworks and test on the ripple is fine, but if it was launched the bb10 Simulator on VM Fusion, the application cannot display the index page.
SDK: BlackBerry 10 WebWorks SDK 1.0.4.11
Ripple: 0.9.14
VM Fusion: 5.02
Simulator: BB10_1_X-807
can someone help me, thank you very.
I think I have this problem.
I try to remove the old sdk bb10 of macos and then reinstall the latest JDK and JRE & bb10 sdk once again, problem solved.
-
Cannot access the AIP SSM via ASDM
CISCO recommendations below:
Cannot access the AIP SSM via ASDM
Problem:
This error message appears on the GUI.
Error connecting to sensor. Error Loading Sensor error
Solution:
Make sure that the IPS SSM management interface is up/down and check his IP address configured, default gateway and the subnet mask. It is the interface to access the software from Cisco Adaptive Security Device Manager (ASDM) on the local computer. Try to ping the address of management of IPS SSM IP interface on the local computer that you want to access the ASDM. If it is impossible to do a ping check the ACLs on the sensor
----------------------------------------------------------------------------------------------------------------------------------------------
I've tried everything recommended above. I can ping the host ASDM the FW and the SSM-10 module. Well, I ping the host machine and the SSM of the ASDM. I opened as wide as possible ACL. I changed the IP addresses and masks several times. The management of the ASA port and the SSM and the PC are on the same subnet.
A trace of package from the PC to the SSM shows that it is blocked by an ACL rule, and yet I opened wide. I've seen this kind of problem before and it was solved by applying the double static NAT, but I don't know how to do that if all the IP addresses are on the same subnet.
Tried everything, need help from high level.
The IDM software that comes with ASDM does not support java 1.7. The portion of the ASDM ASA supports 1.7 but launch the IPS cmdlet works only with 1.6. The TAC enginner suggested that I use the IME (IPS Manager Express) which is available for free on the Cisco's (http://www.cisco.com/en/US/products/ps9610/tsd_products_support_general_information.html) Web site.
I've been playing with it today, and so far it seems to work pretty well.
-
Oracle text index - unexpected behavior
We have a SEARCH_TABLE (in Oracle 12.1.0.1.0) with a couple of files (actually about 10,000,000 records):
ID ADDRESS
1 | WIMPEL | 57. 9733BK | GRONINGEN |
2 | JOHAN WILSSTRAAT | 7 ||| 1333PV | ALMERE |
3 | ABRAHAM KUYPERHOF | 10. 8091XN | WEZEP |
To support research on the table addresses, we apply an Oracle text index:
create index ST_CTX1 on SEARCH_TABLE (address)
indexType is ctxsys.context
parameters ("DATASTORE CTXSYS. DEFAULT_DATASTORE');
Our research focuses on whole words (without jokers). When searching through the data, it usually comes back with the correct results.
SELECT THE ID
OF SEARCH_TABLE
WHERE CONTAINS (ADDRESS, 'GRÖNING') > 0
;
Returns nothing, that is correct. Once the search argument 'GRÖNING' is replaced by 'GRONINGEN', ID 1 is correctly selected. According to this behavior, the following query returns no records:
SELECT THE ID
OF SEARCH_TABLE
WHERE CONTAINS (ADDRESS, 'ABR & KUYPERHOF') > 0
;
Surprisingly, however, the following query returns record ID 3:
SELECT THE ID
OF SEARCH_TABLE
WHERE CONTAINS (ADDRESS, ' A & KUYPERHOF ') > 0
;
(Even if data does not contain the complete word 'A'). This unexpected behavior only seems to occur when you use "A" as the initial character.
The following query (with the search starting with the character 'J' argument) returns no data. Which is the expected behavior.
SELECT the ID
OF SEARCH_TABLE
WHERE CONTAINS (ADDRESS, 'J & WILSSTRAAT') > 0
;
Anyone has an idea why the text index returns with A situations? Any ideas on how to solve this problem are appreciated.
Mark
According to the list of empty words by default in 11.2, the letters a, d, i, s, and t are listed, so would be removed from the wanted list of tokens. Thus, 'A & WILSSTRAAT' becomes '& WILSTRAAT' and search text line with a single word. 'j' is not an empty word, so it is considered to be a token is valid and is not in your tables. Look in CTXSYS. CTX_STOPWORDS to see what you have.
-
In Photoshop, how can I change the background (Mount table) from black to white. I must have hit something because it changed suddenly mid-project and I cannot find anywhere in preferences to solve this problem.
Right-click on the pasteboard, and you should have a choice of colours from timeline menu.
I would add that you should have a file to open it or it won't work.
Gene
-
The error message I recibed. Please help me
After effects WARNING: cannot create file library/preferences/Adobe/After Effects/13.2/dummy
-
How to export all index topics
How to export all index topics in a file?
You can use this script: www.kahrel.plus.com/indesign/index_from_wordlist.html
Peter
Maybe you are looking for
-
Problem with smart updates using the WiFi, modem OK
I started having problems with my WiFi on my Toshiba Satellite laptop. I can not access any program Smart Update - Windows, Norton, Spydoctor, inheritance etc.. These Smart Update programs work very well if I'm connected to Dial-up but not wireless.
-
Hey people, I'm trying to back a p15-s470 I came across not assembled.I picked up a new motherboard and install and I try to pull up this laptop. My problem... where video cables (black and white wires) to connect to the motherboard?Which side and wh
-
Vista - can not install a Service Pack
trying to instaoll packs 1 and 2
-
I buy don't pack widow vista home premium part No 10-52148 x Cd and part no printed in Malaysia is X 13-65749. I reboot and install window vista but can not active there. Please notify
-
I played with mountvol and had a few questions. 1. is it possible to export the VolumeName and import them on another computer? That is to say. Maybe all of this is stored in the registry? 2. one of the 'examples' of mountvol which is given is MOUNT