Using RAW type in the SQLEXEC procedure
Hello
I'm trying to map a RAW type column by using the conversion function and my procedure has not yet recovered by GoldenGate.
If I do the same thing with the column of type NUMBER it works OK. Is this a limitation of the GoldenGate or I'm doing something wrong.
Thank you
Tomek
Oracle procedure
CREATE OR REPLACE PROCEDURE GGT_GET_RAW_BITS(bits RAW,bit_1 OUT NUMBER,bit_2 OUT NUMBER,bit_4 OUT NUMBER,bit_8 OUT NUMBER) IS
BEGIN
bit_1: = CASE WHEN (UTL_RAW. BIT_AND (bits, HEXTORAW('1')) = HEXTORAW('1')) THEN 1 ELSE 0 END;
bit_2: = CASE WHEN (UTL_RAW. BIT_AND (bits, HEXTORAW('2')) = HEXTORAW('2')) THEN 1 ELSE 0 END;
bit_4: = CASE WHEN (UTL_RAW. BIT_AND (bits, HEXTORAW('4')) = HEXTORAW('4')) THEN 1 ELSE 0 END;
bit_8: = CASE WHEN (UTL_RAW. BIT_AND (bits, HEXTORAW('8')) = HEXTORAW('8')) THEN 1 ELSE 0 END;
END;
/
Mapping of GG
TEST THE CARD. N1OTES, THE TARGET TEST. N1OTES
SQLEXEC (ID GG_GET_RAW_BITS, SPNAME TEST. GGT_GET_RAW_BITS, PARAMS (bits = N1FLAGS)).
() COLMAP
USEDEFAULTS,
n1flags1 = @getval (GG_GET_RAW_BITS.bit_2),
n1flags2 = @getval (GG_GET_RAW_BITS.bit_4)
)
;
Hello
Yes, this is a limitation according to the Note 1303708.1.
Thank you
Peter
Tags: Business Intelligence
Similar Questions
-
Exporter which Pages use which Types of the Master Doc
I have a big book of 200 pages.
There are multiple master pages that I use throughout the document.
Each master page has an image in a different location. So a master page can have a large image on the right, we could have a large image on the left, then could be small right picture, so on and so forth.
Throughout the book, I mix in each of these master pages depending on how I wanted to use to design the book visually.
My task is to retrieve pages in jpg and list format where the image is for each page. I can export to jpg without problem of course. I know that certain master pages always have the image in a given location. I noticed that in the window of the page it shows me what model I used to create each page. The problem is that I have no idea what the master page each page uses when I do a standard export. If I had a way to export the pages and what master they use, I could easily map master patterns where the orientation of the image is for each page. If ultimately, is it possible that I can get a listing of mapping page to page template that I used?
I'm not sure what you want here [why do you do this?], but if you want a simple list of pages to watch pages, try this script:
var i,d=app.activeDocument; for (i=0; i
It will give you output like this:
Page 1: A-Master Page 2: B-Master Page 3: C-Master Page 4: C-Master Page 5: B-Master Page 6: A-Master
Good?
-
2 refcursors within the same procedure using
Hello
Can we use 2 refcursors within the same procedure. This may seem strange. But I have a script to do so - one to dynamically check for some validations and another to return a result set.Yes, pass by the example below.
CREATE OR REPLACE PACKAGE CURSPKG AS
TYPE T_CURSOR IS REF CURSOR;
PROCEDURE (EMPCURSOR ON T_CURSOR OPEN_TWO_CURSORS,
DEPTCURSOR ON T_CURSOR);
END CURSPKG;
/
CREATE OR REPLACE PACKAGE BODY CURSPKG AS
PROCEDURE (EMPCURSOR ON T_CURSOR OPEN_TWO_CURSORS,
DEPTCURSOR ON T_CURSOR)
IS
V_CURSOR1 T_CURSOR;
V_CURSOR2 T_CURSOR;
BEGIN
V_CURSOR1 OPEN FOR SELECT * FROM EMP;
V_CURSOR2 OPEN FOR SELECT * FROM THE DEPARTMENT;
EMPCURSOR: = V_CURSOR1;
DEPTCURSOR: = V_CURSOR2;
END OPEN_TWO_CURSORS;
END CURSPKG;
/I hope that it would be useful.
-
Hello
I have a problem to transfer content to an XML file in a MS SQL database through a stored procedure data/fixed. I am able to transfer the content of the file using method...
HSTMT = DBPrepareSQL (hdbc, EXEC usp_InsertReport "
... ");resCode = DBExecutePreparedSQL (hstmt);
resCode = DBClosePreparedSQL (hstmt);
... but in this case, I am not able to read the return value of the stored procedure.
I tried to follow the example of the stored procedure in the help documentation (DBPrepareSQL), but I miss a xml data type?
No idea how to solve my problem?
Cake of KR
DianaS salvation,
Thanks for your comments. During this time I found another way which fullfill my needs:
resCode = DBSetAttributeDefault (hdbc, ATTR_DB_COMMAND_TYPE, DB_COMMAND_TEXT);
sprintf (sz_SqlStatement, "DECLARE @TESTID INT EXEC @TESTID = usp_InsertReport ' SELECT 'RetVal' %s = @TESTID", sz_Buffer ");
HSTMT = DBActivateSQL (hdbc, sz_SqlStatement);While ((resCode = DBFetchNext (hstmt)) == DB_SUCCESS)
{
/ * Enter values in the record. */
resCode = DBGetColInt (hstmt, 1, & s32_TestId);
}resCode = DBDeactivateSQL (hstmt);
sz_Buffer is the content of the XML file.
Cake of KR
-
I use win 7 and the cursor jumps all over the page when you type
When you type using windows 7 I find that the cursor jumps around
It also also increases that you typed!
Would appreciate, if possible, a simple fix step by step if there is a.
Juice now this msg has lost about 2 sentences? and I don't know where they are! ??
Hello
Laptop?
Check with the manufacturer of system support, documentation in line, or forums as there
probably are shortcut keys that enable and disable the touchpad functions.Parameters for TouchPad located in the control panel - mouse (there may be several tabs with)
Entries of TouchPad) and some have a utility that loads in the Notification area near clock on
at the bottom right. There "may" be the sensitivity settings.==========================================
If necessary: (make sure that you have restarted at least once, if the above did not work) try to update
the driver for the TouchPad.Panel of configuration-Device Manager - mice and pointing devices - Double click on touch pad
-Pilot Tab - click on Update Driver (which is may not make anything like MS is far behind certifying)
(drivers), now right CLICK on the touchpad and UNINSTALL.Then go to the USB and UNINSTALL ALL controllers except the category itself (all in).
RESETThis will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad
of work.The similar procedure on XP, Windows 7 and Vista is the same, except that we need to clear
the device if it is present.
http://support.Microsoft.com/kb/310575Then go to the system manufacturer's website and get the latest touchpad drivers.
Download - SAVE - go to where you put it-click on - RUN AS ADMIN.
=================================
This utility also allows to control the TouchPad:
TouchFreeze
http://code.Google.com/p/TouchFreeze/I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
Is it possible to use a Type of personalized content for the REST service operation messages?
I try to POST to the third party, documentum of EMC, REST service using service broker in 8.53 peopletools integration operations. Unfortunately, the third party only accepts a content type of 'application/vnd.emc.documentum+json', which I could not send PeopleSoft and use a message definition at the same time.
In my service operation, if I do NOT fill the request message I can POST to the URI with the such custom content type defined in the property page of the connector in the routing. I have not found a way to do it and also present JSON content on demand, since there is no message associated with the operation. Is it possible to include in this type of message content without using a request message?
If I DO not fill the request message I can't POST successfully because the message content-type of "application/json" gets passed as the content-type instead of the value in the property page of the connector from the routing. Is it possible to change the content type during the use of a message definition?
Thank you
Paul
Hi Paul - you can turn on tracing by using the on demand connection as follows:
1. on the routing set detail header and detail "journal".
2. Main Menu > PeopleTools > Integration Broker > Service Operations Monitor > Administration > control installation Options
-Enable logging of the bridge
-On the registration of demand = 5 (to enable detailed logging)
Note: On request connection only works for the outgoing synchronous Services. In this case, we should be fine. You will find the by transaction log file on your gateway web server... / applications/peoplesoft/PSIGW.war/WEB-INF/.
I did it for one of the REST service operations my test (I'm on 8.52.22). I have my content type of message the value application/json to the operation of the service page. On the routing page, I added a connector property content-type=application/vnd.emc.documentum+json.
Here are the results on the integration gateway logs:
Message-ID:<-.................@nowhere>
MIME-Version: 1.0
Content-Type: multipart/related; Boundary = "Integration_Server_MIME_Boundary."
Content-ID: PeopleSoft-internal-Mime-Message
PeopleSoft-ToolsRelease: 8.52
-Integration_Server_MIME_Boundary
Content-Type: text/plain; Charset = UTF-8
Content-Transfer-Encoding: 8 bit
Content-ID: IBInfo
Content-Disposition: inline
-.................@nowhere>
Sync There ... * deleted for security purposes *... ContentSection0 text/plain N CREATE 5 0 0 0 0 0 0 0 0 0 0 0 0 -Integration_Server_MIME_Boundary
Content-Type: text/json
Content-Transfer-Encoding: 8 bit
Content-ID: ContentSection0
Content-Disposition: inline
username = * collected for security purposes * & password = * deleted for security purposes *.
-Integration_Server_MIME_Boundary-
The Content-Type of the delivery is sent as HTTP Connector of the target and the content of the message (text/json) Type property is always persistent (see the text in bold above). You can compare logs between your two scenarios (with and without the message in the POST) and see if you find something interesting.
I even tried the following code to see if that helps, but I get the same results.
& MSG. IBInfo.LoadRESTHeaders ();
/ * Adds additional headers not defined on the route * /.
REM & MSG. IBInfo.ConnectorOverride = True;
bRet = & MSG. IBInfo.IBConnectorInfo.AddConnectorProperties ("Content-Type", "application/vnd.emc.documentum+json", % Httpentete);
& RESP = IntBroker.SyncRequest % (&MSG);)
I'm working on a similar project at this moment where I'm integrating perceptual Nolij Web RESTful API (Document Management System). I had to resort to using a http client base (common of apache) java instead of broker of integration because of the similar frustrations with REST (cookies are lost, unable to deal with raw binary data in a response message, etc.).
Benefits: Java provides total flexibility.
Cons: As we are bypassing framework Integration Broker, we need everything (error handlng, logging, etc.) do it ourselves.
-
don't forget the select result of a statement to be used several times in the procedure
Hi all
I'm sorry for this kind of question, I'm not newbie, but still need your help.
My need is remember the select result of a statement to be used several times in the procedure.
My first guess is to use a temporary table, but I think there's better decisions.
For example, I should make a heavy request
Select the code from table_function (param1)
Then, this query is used to insert a list of the id in table1, delete table2 and update in table 3.
Help me please do not use if possible temporary tables.
If there is more than one column, you need to create an object type at the database level. Create a collection of this type of object in the procedure.
Example:
CREATE OR REPLACE TYPE "OBJ1" as OBJECT( column1 varchar2(256 CHAR), column2 varchar2(35 CHAR) ); CREATE OR REPLACE TYPE "nt_obj1" as table of OBJ1; -- this could be done at procedure level as well DECLARE t_employee_ids nt_obj1; BEGIN SELECT OBJ1(column1,column2) BULK COLLECT INTO t_employee_ids FROM table1 WHERE column3 = NNN ............. .....
-
The stored procedure PL/SQL - t - it accept the custom Ref Cursor type?
I am not able to compile the following procedure in the HR schema comes with default oracle... I use Oracle 11g Release 11.2.0.2.0 Express edition. It gives me an error (given after the code block):
Block of code:
CREATE OR REPLACE PROCEDURE TEST_REF IS
DECLARE
TYPE REF_EMP IS REF CURSOR RETURN % ROWTYPE EMPLOYEES;
RF_EMP REF_EMP;
V_EMP EMPLOYEES % ROWTYPE;
BEGIN
DBMS_OUTPUT. ENABLE (1000000);
OPEN FOR RF_EMP
SELECT * FROM EMPLOYEES WHERE EMPLOYEE_ID > 100;
EXTRACT THE RF_EMP IN V_EMP;
DBMS_OUTPUT. PUT_LINE (V_EMP. FIRST_NAME. ' ' || V_EMP. LAST_NAME);
CLOSE RF_EMP;
EXCEPTION
WHILE OTHERS
THEN DBMS_OUTPUT. PUT_LINE (SQLERRM);
END TEST_REF;
/
Error:
Errors in PROCEDURE TEST_REF:
LINE/COL ERROR
-------- -----------------------------------------------------------------
2/1 PLS-00103: encountered the symbol "DECLARE" when waiting for an a
What follows:
Start function < an ID > pragma procedure subtype type
< between double quote delimited identifiers > delete the current cursor
There are the external language prior
The symbol 'start' is substituted for 'DECLARE' continue.
16/13 PLS-00103: encountered the symbol "end-of-file" when waiting for him
one of the following values:
(begin case declare exit end exception for goto if loop mod)
pragma raise return null select update while withGet rid of the DECLARED:
SQL> CREATE OR REPLACE PROCEDURE TEST_REF IS 2 TYPE REF_EMP IS REF CURSOR RETURN HR.EMPLOYEES%ROWTYPE; 3 RF_EMP REF_EMP; 4 V_EMP EMPLOYEES%ROWTYPE; 5 BEGIN 6 DBMS_OUTPUT.ENABLE(1000000); 7 OPEN RF_EMP FOR 8 SELECT * FROM EMPLOYEES WHERE EMPLOYEE_ID > 100; 9 FETCH RF_EMP INTO V_EMP; 10 DBMS_OUTPUT.PUT_LINE(V_EMP.FIRST_NAME || ' ' || V_EMP.LAST_NAME); 11 CLOSE RF_EMP; 12 EXCEPTION 13 WHEN OTHERS 14 THEN DBMS_OUTPUT.PUT_LINE(SQLERRM); 15 END TEST_REF; 16 / Procedure created. SQL> set serveroutput on SQL> exec TEST_REF; Donald OConnell PL/SQL procedure successfully completed. SQL>
SY.
-
whenever I type in the google box to search for each letter i firefox type which application I would like to use to open this file, this is so embarrassing, how to stop this?
You are welcome
Can you tell us which extension caused your problem?
-
A Bluetooth keyboard for iMac can be coupled to an iPad Air2 type near the airbook keyboard use?
Yes. iPads supports BT keyboards very well, including the Apple BT keyboard.
Make sure that the keyboard is unpaired of any other device or computer before you try to pair it with the iPad.
-
Since the download of Firefox 4, I have problems of archiving gmail conversations since my Inbox view (one or more conversations) as it says 'No. Conversations selected' when I selected one or more. Also, when I go to enter a new event in google calendar, I have to click the cursor in the field type of the event (it used to let me just start typing) or else he bends and begins to jump to the day view or another month. Does anyone know how to fix one of these?
I had this problem; But while trying to solve another problem, I reset my preferences for Firefox and it fixed this problem as well. To reset the preferences, follow this link: http://support.mozilla.com/en-US/kb/Resetting%20preferences
-
I can't use the promps search or search history, I have to type in the full research
When I type in the search box, suggested guest and search history is displayed, but when I use it, nothing happens, historical research and promps suggested search box just disappear, and I'm always on the current page. I have to type in the name of the site in the area of research before I can hit the search button.
This happened after my last firefox updateIf you click on the 'down' arrow in the Google search box and then place your cursor over the term that you want in the search history for even a left click on the mouse and then hold the cursor over the keyword desired for a few seconds, it works.
Clearly a bug I hope that they will be in trouble.
-
Original title: MAC to PC NETWORKING.
I added my Mac to my PC network workgroup. I can see the PC from my Mac, but not my Mac to the PC network puts unless I have use RUN in the start menu and type in the IP address. I am running XP Pro SP3.
Hi markymo777,
I suggest you to check if you can see the MAC computer with the UNC path - \\computername\sharename. Later, check to see if the problem persists.
Hope the helps of information.
Please post back and we do know. -
I have been using the player above since the issue is and have had no problems so far.
For some inexplicable reason, I was not able to play any music saved through this player. Whenever I try, I get he message sits on the screen: -.
"PLAYER DOES NOT SUPPORT FILE TYPE OR THE CODEC USED TO COMPRESS THE FILE.
I use Windows 7 Home Premium 64. I have not changed the parameters of the media player I've always been very happy to use it as it came.
Can someone come up with a solution to this please?
Thank you.
Hi Olly,
This problem may occur if the Windows Media Player settings are corrupt.
If you were able to play the same songs earlier by the player, run the troubleshooting of Windows Media Player settings to solve the problem:
http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter
If it is a different set of media files, you can check if the required codec is already installed or present to play. Here is an article that provides all required information related codecs:
In addition, you can find the media list of the types of files supported in Windows Media Player:
http://support.Microsoft.com/kb/316992/en-us
Please let us know if the problem still persists.
-
dbAdapter fails during the call to procedure package oracle object type in the parameter out
JDeveloper 1.1.1.6
Oracle 11g
Existing package procedure is defined with the table of objects in input parameters and.
Package myPackage
procedure processRecon (numero_projet VARCHAR2,
INST_ID select NUMBER,
recon_type VARCHAR2,
gis_design_stock GMPVT. GMPVT_GIS_DESIGN_STOCK_T,
stock_uop GMPVT. GMPVT_STOCK_CODES_T,
x_status OUT VARCHAR2,
x_escalation OUT VARCHAR2,
x_recon_error ON GMPVT. GMPVT_GIS_RECON_ERR_T) IS
GMPVT. GMPVT_GIS_RECON_ERR_T is an array of GMPVT objects. GMPVT_GIS_RECON_ERR, who has 12 fields including the new I added it.
I have added a new field to the GMPVT object. GMPVT_GIS_DESIGN_STOCK, where GMPVT. GMPVT_GIS_DESIGN_STOCK_T is a table of GMPVT. GMPVT_GIS_DESIGN_STOCK, no problems encountered during the test.
Next, I added a new field for the object of type GMPVT. GMPVT_GIS_RECON_ERR, the following error below occurs when the DBAdapter is called
< Summary > Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run operation 'processStockRecon' failed due to the reference: Interaction processing error." Error in the processing of applications from running. GMP_SOA_RECON_PKG. Interaction of the PROCESSRECON API. An error occurred during the processing of the interaction to invoke APPS. GMP_SOA_RECON_PKG. PROCESSRECON API. Cause: java.lang.ArrayIndexOutOfBoundsException: 12 check to make sure that the XML file containing the data of the parameter matches the parameter definition in the XSD. This exception is considered non reproducible, probably due to an error of modeling. ". The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution. < / Summary >
I confirmed that the XSD for the stored procedure has in fact change, which has been generated by JDeveloper as I refreshed the database adapter.
The statement "Cause: java.lang.ArrayIndexOutOfBoundsException: 12" I can't that assume somehow SOA has 12 parameters but the 12 setting was not saved.
Any thoughts on what I might be missing. I can provide more information if necessary.
Hello
This problem has been resolved. Not deployed SOA composite and then deployed to the server of the SOA. For some reason, SOA has been either you see does not changes in the file XSD (cached?) or the XSD was not get updated.
Thank you
Maybe you are looking for
-
13 YOGA DOES NOT START AFTER THE UPGRADE.
I just got my 13 return of lenovo yoga after getting the MB replaced for an unrelated reason. Got on and windows was due for an update, so I made and e all was going well until I restarted the yoga and it wouldn't start. It goes to the windows 8 logo
-
corresponds to the model function
Hello IM using the "model match" function in labview. But when I use the example below, it does not, when you change the '.' to '=' at the time of entry it works. Why can't use a '.'? GR,
-
Today, I bought a Y560. After you set up windows, I found that the screen is dark which is bad in my eyes.
-
Updated the installation of Microsoft Security Essentials error 0 x 80070003
original title: Windows Update problem I can't update Microsoft Security Essentials since I installed pro SpeedyPC. Get error 0 x 80070003.
-
File name includes one or more invalid characters.
'File name includes one or more invalid characters.