Data should be in non readable format in payload-- SXMB_MONI
Hi All;
I have a scenario where I need to send MT103 file to bank with digital signature and this configuration is done and working good.I have a new requirement, that the payload data/content should not be in readable format in SXMB_MONI. This is where I am not able to succeed. In RWB the data is not in readable format, so there is no issue.
I have the following options with me;
1.Create a copy of SXMB_MONI & add authorization object only for not to display payload content.
2.Create a new role with less privilege for XI Monitoring and assign this to all the users. (even XI administrator will have less privilege which is not good)
3.Do the signature part in R/3 before XI is picking. (so that the data is not readable , ABAP development not preferred ).
4.Send the file in Binary Format to bank. (Bank rejected this option, because they donu2019t support this process)
5.Create a Internal FTPS site. MT103 file will be placed in FTPS site folder. When XI picks the file adds the digital signature in (sender CC).(I have a doubt, will the data be in non readable format in SXMB_MONI?)
If you know any better/preferred solution, please let me know.
Thanks;
Prabhu Rajesh
Hello
Check the link below:
Messaging Components of the Integration Engine
http://help.sap.com/saphelp_nw70/helpdata/en/42/52f7415e639c39e10000000a155106/frameset.htm
Use authorization object S_XMB_MONI if you want to prevent message trace headers or message payloads being visible in the PI monitoring tools.
Regards
Mark
Similar Messages
-
Need to convert the binary data in blob field to readable format
Hi,
We need to convert the Binary data in the BLOB field to readable format and need to display it in Oracle Apps Environment,does anybody come across the similar requirement.
please advise, thanks in advance.
Regards,
Babu.You could use standard Attachments functionality here ... if the blob is not in FND_LOBS, insert into FND_LOBS, fnd_attached_documents etc to enable viewing via "Attachments" to the entity the blob is related to.
Gareth -
Converting the Opaque Element into Readable format.
Hi,
Right now, I am using the FTP adapter to continously poll for a new file. Whenever new file comes in, our BPEL process gets initiated. We get the contents of the file in the variable of opaque element( I have given Message Schema is Opaque in the FTP Adapter configuration).
I have to send the content of the file as the attachment in the e-mail. So when I am using the above variable in the e-mail notification, I am getting the data in the non-readable format, since the corresponding variable is of opaque schema. Now my requirement is to convert this non-readable opaque data into the readable data.
Any help is highly appreciatable.Sorry the code I gave you was decodeing a hex variable into string.
Try this code:
String input = (String)getVariableData("InputBinary");
Base64Decoder Decoder = new Base64Decoder();
String decoded = Base64Decoder.decode(input);
setVariableData("OutputString",decoded);
you will also need to add the java class:
<bpelx:exec import="com.collaxa.common.util.Base64Decoder"/>
Just looking at the Base64 string you are testing. It is missing the 'g' off 'Testing'. The correct binary string should be VGVzdGluZw==
I'm not sure how this code is getting generated but you may need to look in that.
If you want the code to encode into binary use this:
String input = (String)getVariableData("InputString");
Base64Encoder encoder = new Base64Encoder();
byte[] barray = (new String(input)).getBytes();
BigInteger bint = new BigInteger(barray);
String encoded = Base64Encoder.encode(barray);
setVariableData("OutputBinary",encoded);
add the java class:
<bpelx:exec import="com.collaxa.common.util.Base64Encoder"/>
sorry for putting you wrong.
cheers
James -
how can i save me data stored on a non responding ipod classic and says you need to format before using it?
in another way : how can i save my date stored on my classic iPOD as a external hard .... when that msgs appears .... volume doesn't contain a recognized file system , make sure the file system is loaded .... then , you need to format ??? can anyone help ?It sounds like the iPod's storage has data corruption. You may be able to treat it like an external drive and use data recovery software on it, but it probably won't work because the system is telling you that the drive needs to be formatted before it is recognized.
If the problem is data corruption and there is no hardware-related problem on the iPod's hard drive, a Restore should fix the problem. But this will obviously erase the iPod's hard drive. -
Displaying data in readable format
select *from user_tables;
TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME STATUS PCT_FREE PCT_USED INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS
FREELIST_GROUPS LOG B NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES CACHE TABLE_LO SAMPLE_SIZE LAST_ANAL PAR IOT_TYPE T S NES BUFFER_ ROW_MOVE GLO USE
DURATION SKIP_COR MON CLUSTER_OWNER DEPENDEN COMPRESS DRO
JOB_GRADES USERS VALID 10 1 255 65536 1 2147483645
YES N 6 5 0 0 0 9 0 0 1 1 N ENABLED 6 03-SEP-12 NO N N NO DEFAULT DISABLED YES NO
DISABLED YES DISABLED DISABLED NO
ERROR USERS VALID 10 1 255 65536 1 2147483645
YES N 1 5 0 0 0 84 0 0 1 1 N ENABLED 1 03-SEP-12 NO N N NO DEFAULT DISABLED YES NO
DISABLED YES DISABLED DISABLED NO
TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME STATUS PCT_FREE PCT_USED INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS
FREELIST_GROUPS LOG B NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES CACHE TABLE_LO SAMPLE_SIZE LAST_ANAL PAR IOT_TYPE T S NES BUFFER_ ROW_MOVE GLO USE
DURATION SKIP_COR MON CLUSTER_OWNER DEPENDEN COMPRESS DRO
TEST_A USERS VALID 10 1 255 65536 1 2147483645
YES N 3 5 0 0 0 16 0 0 1 1 N ENABLED 3 03-SEP-12 NO N N NO DEFAULT DISABLED YES NO
DISABLED YES DISABLED DISABLED NO
COLLECTIONS_EG USERS VALID 10 1 255 65536 1 2147483645
YES N 1 1 N ENABLED NO N N NO DEFAULT DISABLED NO NO
TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME STATUS PCT_FREE PCT_USED INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS
FREELIST_GROUPS LOG B NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES CACHE TABLE_LO SAMPLE_SIZE LAST_ANAL PAR IOT_TYPE T S NES BUFFER_ ROW_MOVE GLO USE
DURATION SKIP_COR MON CLUSTER_OWNER DEPENDEN COMPRESS DRO
DISABLED YES DISABLED DISABLED NO
COUNTRIES VALID 0 0 0 0
N 4 0 19 0 1 1 N ENABLED 4 03-SEP-12 NO IOT N N NO DISABLED YES NO
DISABLED YES DISABLED DISABLED NO
DEPARTMENTS EXAMPLE VALID 10 1 255 65536 1 2147483645
TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME STATUS PCT_FREE PCT_USED INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS
FREELIST_GROUPS LOG B NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES CACHE TABLE_LO SAMPLE_SIZE LAST_ANAL PAR IOT_TYPE T S NES BUFFER_ ROW_MOVE GLO USE
DURATION SKIP_COR MON CLUSTER_OWNER DEPENDEN COMPRESS DRO
NO N 8 5 0 0 0 19 0 0 1 1 N ENABLED 8 03-SEP-12 NO N N NO DEFAULT DISABLED YES NO
DISABLED YES DISABLED DISABLED NO
EMPLOYEES EXAMPLE VALID 10 1 255 65536 1 2147483645
NO N 20 5 0 0 0 66 0 0 1 1 N ENABLED 20 03-SEP-12 NO N N NO DEFAULT DISABLED YES NO
DISABLED YES DISABLED DISABLED NOi want to display the data in readable format
10g oracle.Hi,
Rahul_India wrote:
i want to display the data in readable formatHow to do that depends on what you consider "readable".
SET PAGESIZE higher, to get fewer header rows.
SET LINESIZE higher, if appropriate
Look up the COLUMN command in the SQL*Plus manual The
FORMAT
FOLD_AFTER, FOLD_BEFORE
TRUNCATED, WRAPPED, WORD_WRAPPED
options are especially useful.
Do you really need to see all the columns? If not, don't use SELECT *.
Consider explicitly listing the columns in a different order. The output may be more readable if related columns are listed together, or one directly above the other. At any rate, you can probably pack multi-line output more tightly if you specify the order.
Do you have a text editor where reading long lines is easier than it is in the SQL*Plus window? If so, SPOOL the output, and read the file it creates in your editor. -
X12 00502-204 validate instance failure when EDI file is in readable format in Visual Studio
Hi, I have a n X12 00502- 940 edifile, when all data are on the same line, Visual studio validates
ST*204*7629~B2**XXXX**159771**PP~.......N4G*L*43920*900**E*864~SE*33*7629~
when I try to make the file in a readable format, each segment on line by hiting enter after each "~", and try to validate
as follows
ST*204*7629~
B2**XXXX**159771**PP~
B2A*00*LT~
SE*33*7629~
I get "Invalid Segment Terminator" or many segment level errors, I have always "~" in the "segment separator (106th char of iSA) checked in the validate instance dialog box. In Segment separator suffixe, I tried all, None, CR,
LR & CRLF but no way
I also generated an instance and made it readble, I get the exact same behavior
Thanks in advanceCovert it to readable format only for your purpose. Leave the system to read it based on segment separator only.
-
Hi,
My Oracle Version is 10.2.0.4.
How would I know the low_value and high_value from the table USER_TAB_COL_STATISTICS in a readable format. I am getting the values in RAW. How would I get these values for CHAR datatype columns in CHAR, NUMBER datatype columns in NUMBER and DATE datatype columns in DATE.
See the example given below.
swamy@VSFTRAC1> DESC employee_attendance
Name Null? Type
EMPID NOT NULL VARCHAR2(10)
ACCESS_TIME NOT NULL DATE
ENAME VARCHAR2(50)
FLOOR VARCHAR2(10)
DOOR VARCHAR2(10)
INOUT VARCHAR2(3)
ACCESS_RESULT VARCHAR2(50)
swamy@VSFTRAC1> SELECT column_name, density, num_distinct, num_nulls, low_value, high_value, avg_COL_len FROM user_tab_col_statistics WHERE table_name='EMPLO
YEE_ATTENDANCE';
COLUMN_NAME DENSITY NUM_DISTINCT NUM_NULLS LOW_VALUE HIGH_VALUE AVG_COL_LEN
EMPID .008333333 120 0 30303031303830 3031313633 7
ACCESS_TIME .000259538 3853 0 786E0101031121 786E0106121B01 8
ENAME .008333333 120 0 414248494A49542050415449 57494E53544F4E2053414D55454C20 16
52414A552050
FLOOR .5 2 0 5345434F4E44 5448495244 7
DOOR .5 2 0 454E5452414E4345 535441495243415345 10
INOUT .5 2 0 494E 4F5554 4
ACCESS_RESULT 1 1 0 414343455353204752414E544544 414343455353204752414E544544 15
7 rows selected.
swamy@VSFTRAC1>Hi,
You can use the " dbms_stats.convert_raw_value" to convert the value to readable format
Refer to the following for the example
http://structureddata.org/2007/10/16/how-to-display-high_valuelow_value-columns-from-user_tab_col_statistics/
Hope that helps and solution for your requirement.
- Pavan Kumar N
Oracle 9i/10g - OCP
http://oracleinternals.blogspot.com/ -
Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.The Oracle documentation has a good overview of the options available
Generating XML Data from the Database
Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
You can also find some information in XML DB FAQ -
Date validation in "DD-MON-YYYY" Format,
Hi ,
I have created a textbox with date picker as (dd-mon-yyyy) .
Now i want to create a validation on it for the format (dd-mon-yyyy) .
I have created a pl/sql code with type "function returning error text".
Begin
If :P4_END_DATE IS NOT NULL THEN
if :P4_END_DATE != to_date(:P4_END_DATE ,'DD-MON-YYYY') then
return 'END DATE should be in "DD-MON-YYYY" Format';
end if;
END IF;
End;
When i type in like 20-NOV-08 it gives error as 'START DATE should be in "DD-MON-YYYY" Format',
but when i change month like 20-11-2008 , it actually gives error
ORA-01843: not a valid month
Error ERR-1024 Unable to run "function body returning text" validation.Vaibss wrote:
Hi ,
I have created a textbox with date picker as (dd-mon-yyyy) .
Now i want to create a validation on it for the format (dd-mon-yyyy) .
I have created a pl/sql code with type "function returning error text".
Begin
If :P4_END_DATE IS NOT NULL THEN
if :P4_END_DATE != to_date(:P4_END_DATE ,'DD-MON-YYYY') then
return 'END DATE should be in "DD-MON-YYYY" Format';
end if;
END IF;
End;
When i type in like 20-NOV-08 it gives error as 'START DATE should be in "DD-MON-YYYY" Format',
but when i change month like 20-11-2008 , it actually gives error
ORA-01843: not a valid month
Error ERR-1024 Unable to run "function body returning text" validation.The call to 'to_date' is raising an exception when it tries to convert your date, standard PL/SQL exception handling takes over and the rest of your code is ignored.
You could try:
declare
pragma exception_init(invalid_date,-01830);
l_dummy date;
Begin
If :P4_END_DATE IS NOT NULL THEN
l_dummy := to_date(:P4_END_DATE ,'DD-MON-YYYY') then
END IF;
exception
when invalid_date then
return 'END DATE should be in "DD-MON-YYYY" Format';
End;
but even that will not check that the user actually used your desired format - the to_date can be quite flexible e.g. accepting separators other than the '-' that you have declared. In fact, the above would only catch the user entering a 'date' that is shorter than the format string - changing the 'invalid_date' for 'others' would capture more (all!) exceptions.
You probably want to look at using regular expressions to perform the format validation.
Edited by: Andy Hardy on Nov 25, 2008 12:29 PM -
Complete export of SAP XI elements to an external, readable format i.e. XML
Within the scope of a project regarding Dependencies of Applications within the company the data, saved in the Integration Directory as well as in the Integration Repository, have to be exported in an external, readable format which can be processed in another application. My question is concerned with the extraction possibilities I have concerning the different components:
Integration Repository: Here we need the data about Message Interfaces, Message Types as well as Data Types. As this information are formally described using WSDL: Does a possibility exist to export all WSDL Documents automatically?
Integration Directory: Here we are interested in the elements: Receiver Determination, Interface Determination, Sender Agreement etc. Does any possibility exist to export these data to i.e. a XML File? Is ABAP necessary?
Your help will be greatly appreciated.
Kind Regards,
Sebastian GrunowYou can read, alter and load objects with the APIs of the WebServicesNavigator. To browse to there open your browser and go to http://url:Port/index.html
There you can select the Web Services Navigator. Browse through the services for the desired objects. Use the query function to read out all existing objects by key values and as a template to use the read-function of these APIs.
Make sure you have the Java-Roles SAP_XI_API_DEVELOP_J2EE and/or SAP_XI_API_DISPLAY_J2EE -
How to read from BLOB and Write to a file in user readable format.
Hi,
I am trying to read from a BLOB column and write the content to a file in user readable format. So far I was able to read the Blob column using dbms_lob, but not able to write to a file. Kindly let me know the method to do this.Hi, with this Java Code from Oracle Technet it's a easy thing:
// classpath= /ORACLE/u01/app/oracle/product/10.2.0.3/jdbc/lib/ojdbc14.jar
// Java SQL classes
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
// Oracle JDBC driver class
import oracle.jdbc.OracleDriver;
// Java IO classes
import java.io.IOException;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
//Java Util classes
import java.util.Properties;
* This class demonstrates the Oracle JDBC 10g enhanced features for inserting
* and retrieving CLOB data from the database. Using the new features, large
* data of more than 32765 bytes can be inserted into the database using the
* existing PreparedStatement.setString() and PreparedStatement.getString()
* methods.
public class ClobMan {
/* Database Connection object */
private Connection conn = null;
/* Variables to hold database details */
private String url = null;
private String user = null;
private String password = null;
// Create a property object to hold the username, password and
// the new property SetBigStringTryClob.
private Properties props = new Properties();
/* String to hold file name */
private String fileName = null;
* Default Constructor to instantiate and get a handle to class methods
* and variables.
public ClobMan(String fileName) {
this.fileName = fileName;
* Main runnable class.
public static void main(String[] args) throws SQLException {
// Instantiate the main class.
ClobMan clobMan = new ClobMan(args[0]);
// Load the Oracle JDBC driver class.
DriverManager.registerDriver(new OracleDriver());
// Load the database details into the variables.
String dbUrl = "jdbc:oracle:thin:@pmol:1550:dbpmol";
clobMan.url = dbUrl;
clobMan.user = "gh10";
clobMan.password = "secret";
// Populate the property object to hold the username, password and
// the new property 'SetBigStringTryClob' which is set to true. Setting
// this property allows inserting of large data using the existing
// setString() method, to a CLOB column in the database.
clobMan.props.put("user", clobMan.user );
clobMan.props.put("password", clobMan.password);
clobMan.props.put("SetBigStringTryClob", "true");
// Check if the table 'CLOB_TAB' is present in the database.
//clobMan.checkTables();
// Call the methods to insert and select CLOB from the database.
//clobMan.insertClob();
clobMan.selectClob();
* This method will insert the data into a CLOB column in the database.
* Oracle JDBC 10g has enhanced the existing PreparedStatement.setString()
* method for setting the data more than 32765 bytes. So, using setString(),
* it is now easy to insert CLOB data into the database directly.
private void insertClob() throws SQLException {
// Create a PreparedStatement object.
PreparedStatement pstmt = null;
try {
// Create the database connection, if it is closed.
if ((conn==null)||conn.isClosed()){
// Connect to the database.
conn = DriverManager.getConnection( this.url, this.props );
// Create SQL query to insert data into the CLOB column in the database.
String sql = "INSERT INTO clob_tab VALUES(?)";
// Read a big file(larger than 32765 bytes)
String str = this.readFile();
// Create the OraclePreparedStatement object
pstmt = conn.prepareStatement(sql);
// Use the same setString() method which is enhanced to insert
// the CLOB data. The string data is automatically transformed into a
// clob and inserted into the database column. Make sure that the
// Connection property - 'SetBigStringTryClob' is set to true for
// the insert to happen.
pstmt.setString(1,str);
// Execute the PreparedStatement
pstmt.executeUpdate();
} catch (SQLException sqlex) {
// Catch Exceptions and display messages accordingly.
System.out.println("SQLException while connecting and inserting into " +
"the database table: " + sqlex.toString());
} catch (Exception ex) {
System.out.println("Exception while connecting and inserting into the" +
" database table: " + ex.toString());
} finally {
// Close the Statement and the connection objects.
if (pstmt!=null) pstmt.close();
if (conn!=null) conn.close();
* This method reads the CLOB data from the database by using getString()
* method.
private void selectClob() throws SQLException {
// Create a PreparedStatement object
PreparedStatement pstmt = null;
// Create a ResultSet to hold the records retrieved.
ResultSet rset = null;
try {
// Create the database connection, if it is closed.
if ((conn==null)||conn.isClosed()){
// Connect to the database.
conn = DriverManager.getConnection( this.url, this.props );
// Create SQL query statement to retrieve records having CLOB data from
// the database.
String sqlCall = "SELECT rownum, name, sourcetext FROM t_source";
pstmt= conn.prepareStatement(sqlCall);
// Execute the PrepareStatement
rset = pstmt.executeQuery();
String rownum = null;
String o_name =null;
String clobVal = null;
// Get the CLOB value from the resultset
//java.io.BufferedWriter out = new java.io.BufferedWriter(new java.io.FileWriter("pr_all.sql"));
while (rset.next()) {
rownum = rset.getString(1);
o_name = rset.getString(2);
clobVal = rset.getString(3);
System.out.println(" length: "+clobVal.length()+" "+o_name+" "+rownum);
java.io.BufferedWriter out =
new java.io.BufferedWriter(new java.io.FileWriter(o_name+".prc"));
out.write(clobVal);
out.newLine();
out.write("/");
out.newLine();
out.newLine();
out.flush();
out.close();
} catch (SQLException sqlex) {
// Catch Exceptions and display messages accordingly.
System.out.println("SQLException while connecting and querying the " +
"database table: " + sqlex.toString());
} catch (Exception ex) {
System.out.println("Exception while connecting and querying the " +
"database table: " + ex.toString());
} finally {
// Close the resultset, statement and the connection objects.
if (rset !=null) rset.close();
if (pstmt!=null) pstmt.close();
if (conn!=null) conn.close();
* Method to check if the table ('CLOB_TAB') exists in the database; if not
* then it is created.
* Table Name: CLOB_TAB
* Column Name Type
* col_col CLOB
private void checkTables() {
Statement stmt = null;
ResultSet rset = null;
try {
// Create the database connection, if it is closed.
if ((conn==null)||conn.isClosed()){
// Connect to the database.
conn = DriverManager.getConnection( this.url, this.props );
// Create Statement object
stmt = conn.createStatement();
// Check if the table is present
rset = stmt.executeQuery(" SELECT table_name FROM user_tables "+
" WHERE table_name = 'CLOB_TAB' ");
// If the table is not present, then create the table.
if (!rset.next()) {
// Table does not exist, create it
stmt.executeUpdate(" CREATE TABLE clob_tab(clob_col CLOB)");
} catch (SQLException sqlEx) {
System.out.println("Could not create table clob_tab : "
+sqlEx.toString());
} finally {
try {
if( rset != null ) rset.close();
if( stmt != null ) stmt.close();
if (conn!=null) conn.close();
} catch(SQLException ex) {
System.out.println("Could not close objects in checkTables method : "
+ex.toString());
* This method reads the specified text file and, returns the content
* as a string.
private String readFile()
throws FileNotFoundException, IOException{
// Read the file whose content has to be passed as String
BufferedReader br = new BufferedReader(new FileReader(fileName));
String nextLine = "";
StringBuffer sb = new StringBuffer();
while ((nextLine = br.readLine()) != null) {
sb.append(nextLine);
// Convert the content into to a string
String clobData = sb.toString();
// Return the data.
return clobData;
} -
Converting value from System.currentTimeMillis() to readable format
hi
i have in database coumn with values that were stored as result of executing System.currentTimeMillis() in java (=“the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC). i need to convert these values to some human readable format.
i am able to get year, month and day from these values(value_date) in format "dd/mm/yyyy" but i need hours, minutes and seconds as well.
select i have for getting years, months and days:
select (
extract (day FROM (to_date('01/01/1970 00:00:00000','mm/dd/yyyy hh24:mi:sssss') + value_date/1000/86400))
|| '/'||
extract (month from (to_date('01/01/1970 00:00:00000','mm/dd/yyyy hh24:mi:sssss') + value_date/1000/86400))
||'/'||
extract (year FROM (to_date('01/01/1970 00:00:00000','mm/dd/yyyy hh24:mi:sssss') + value_date/1000/86400))
FROM some_table;
please advice how to improve this select to get something like "dd/mm/yyyy hh:mm:ss"
thanksNote that the result with to_char might still not be what you expect (due to timezone and/or DTS):
SQL> CREATE OR REPLACE FUNCTION currenttimemillis
RETURN NUMBER
IS
LANGUAGE JAVA
NAME 'java.lang.System.currentTimeMillis() return java.lang.long';
Function created.
SQL> select to_char(sysdate, 'dd.mm.rrrr hh24:mi:ss') dt,
to_char(date '1970-01-01' + currentTimeMillis/(1000*24*60*60),'dd.mm.rrrr hh24:mi:ss') dt2
from dual
DT DT2
04.06.2009 16:44:09 04.06.2009 14:44:09 -
Current date should be populated when executing the hierachy variable.
Hi bw Pro's
I have a customer hi-erachy.For that hierachy i created a variable.
The variable name is hieraachy date.
the variable will be executed with user entry/default value.
the characteristic i used for thata variable is date.
Now the requirement is the date should be populated with current date when ever i executed the variable automatically
I thk i need to develop customer exit for this. I am not so comfort with coding.
can anybody will help me on this issue. suggest me with logic or any further idea.
any help is appreciated .
Thanks,
suriHi Jasprit,
Below is the erro when i added the code and i restrict the customer exit variable.
ERRORS:
INCORRECT FORMAT WITH KEY DATE FOR ELEMENT "43Z6K6807CL51WZ025Q1GPHER"(VALUE "&&" IS INVALID).
Below is the diagnosis for the error.
You are using a key date specification in the query. This can be either in the query key date directly or in the key date for a selection or presentation hierarchy. the element, in which this error was found, is called "43Z6KGHDHHJ5VYWJU8UEVBRRK". The invalid value is called "&&".
System response
The problem is reported with the check.
Procedure
Check the incorrect format in the specified element and correct it.
Technical name (UID) of the element: "43Z6KGHDHHJ5VYWJU8UEVBRRK".
I am checking the UID in rsa1> transprot connection>query element-->variable.But system is not showing any UID. Any idead on the above issue.
Can you please help me in this.
thanks
suri -
Safari displays PDF as non-readable text
Recently when I open a PDF file in Safari it displays as non-readable text. How can this be fixed?
After some further research I resolved the problem. The Adobe Acrobat Reader installation was indeed the culprit. I had to unlock and allow myself to access as a root user on the Mac. Then I searched the \Library file for the "Internet Plug-ins" folder. I created a new "Internet Plug-ins Disabled" folder and moved the following 2 Adobe plug-in files 1. AdobePDFViewer.plugin; 2. AdobePDFViewerNPAPI.plugin to the Disabled file I just created; or you can move those two files into the trash folder. Either way should work. I did actually have to do both, becasue the 2 files copied rather than moved. Most important after performing this task REMEMBER to LOCK the root user before resuming normal work on your computer. Root user access has a lot of power and can yield a lot of havock if you inadvertently forget and have left in unlocked.
-
Can we extract blob objects from sql database to a human readable format?
Hi All,
I have question How can we extract
blob objects from Sql database to human readable format ?
Blob includes Images, text and docs.
Thanks
Moug
Best Regards MougOne thing you can do if its sql 2012 or later is to load the blob data to FileTable created in database. Then you would be able to physically browse to directory it points and see all files in its native format.
see this for more details
http://visakhm.blogspot.in/2012/07/working-with-filetables-in-sql-2012.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Maybe you are looking for
-
Sudden shut down problem in my new imac
I bought intel based 24" imac two week age from apple store website. Once in a day, the mac suddenly stops and shows a massage "forced shutdown and restart the mac." Just ten minute before, I lost my five-hour-work. How can I this recurring problem?
-
Hi, I have servo drive (yaskawa sigma fsp) that i configured to work in Position command mode, And i want to connect it to UMI-7774 with PCI-7344 also configured in MAX to work in P-Command mode. The Servo drive has these signals: /S-ON (Servo ON
-
APEX 4.0.2 Error on Master Detail Pages - 'length' is null or not an object
Greetings, We just upgraded to APEX 4.0.2.00.07 this past weekend. Now a JavaScript error occurs when Master Detail pages are opened in IE 8. The error is - 'length' is null or not an object. I do not have a page item named length on any of these pag
-
Using the type parameter of the Terminal is the best way to get the type of a control. If you try to do something like "get the value of the control and then ask for the type of that", you run into problems with LV classes and refnum types where the
-
I need to make my iPod an external hard drive, and the "enable disk use" option does not appear for me. I've gone through all the settings, reverted back to 10.7 and gone through all of those settings too. I've watched a million ****ing tutorials and