Cant retrieve data from php
hi, i just uploaded to our remote host the files with php and
flex combination. here on my local computer, i was able to retrieve
data using my local database, i also tried to connect from my local
using a remote database. but when i uploaded the files, and tried
to connect to a red hat linux host i think, i cant make it to work.
i can see the interface but no data was retrieve. i googled some
possible options and used crossdomain, but still cant get it to
work. im, by the way, new to flex and would like to explore this
great technology. i was thinking the my tags in
<mx:HTTPService> were incorrect, i have url="
http://server/docroot/pages/php/request.php",
i also tried url="php/request.php", but still failed to retrieve
the information.hope u can help me guys. thank you in
advance.
If you're loading your SWF from one server, and contacting
another server,
you need place the crossdomain.xml file on the other server
from which you're
requesting data, typically in the webroot.
That is, if you're trying to contact "
http://server/docroot/pages/php/request.php"
then you'd need to have a crossdomain.xml file at "
http://server/crossdomain.xml".
This crossdomain.xml policy file must include the domain from
which your
SWF was loaded in order for it to be allowed to contact this
domain.
Hello arpiyem,
> hi, i just uploaded to our remote host the files with
php and flex
> combination. here on my local computer, i was able to
retrieve data
> using my local database, i also tried to connect from my
local using a
> remote database. but when i uploaded the files, and
tried to connect
> to a red hat linux host i think, i cant make it to work.
i can see the
> interface but no data was retrieve. i googled some
possible options
> and used crossdomain, but still cant get it to work. im,
by the way,
> new to flex and would like to explore this great
technology. i was
> thinking the my tags in <mx:HTTPService> were
incorrect, i have
> url="
http://server/docroot/pages/php/request.php",
i also tried
> url="php/request.php", but still failed to retrieve the
> information.hope u can help me guys. thank you in
advance.
>
Similar Messages
-
How to retrieve data from php to a java applet?
hi! wer having this project on printing jar files and reports..where these reports are generated from php. data will be passed as objects to the java applet. how r we suppose to do this? can someone pls explain it to me further and clearly? many thanx.. :) God bless!
What? Is the php page going to send Java objects?
-
Hello,
I'm trying to load data to my table.
$ora_conn = ocilogon("user", "passwd", "orcl");
$xml = '<xm>...</xml>';
$sql = "INSERT INTO test VALUES(1111, sys.xmltype.createxml(:rec))";
$stmt = OCIParse($ora_conn,$sql);
$clob = OCINewDescriptor($ora_conn, OCI_D_LOB);
$rowid = OCINewDescriptor($ora_conn,OCI_D_ROWID);
OCIBindByName($stmt, ':rec', &$clob, -1,OCI_B_CLOB);
$clob->WriteTemporary($xml,OCI_TEMP_CLOB);
$success = OCIExecute($stmt,OCI_DEFAULT);
if($success) {
OCICommit($ora_conn);
OCIFreeStatement($stmt);
OCIFreeDesc($lob);
using this I can insert large XML documents. But when I try to retrieve them from PHP i can't. Ive tried an ocifetch into and an ocifetch...
$ora_conn = ocilogon("stefan", "geheim", "orcl");
$sql = "select record from test";
$stmt = OCIParse($ora_conn,$sql);
OCIExecute($stmt,OCI_DEFAULT);
while(OCIFetchInto($stmt, $arr, OCI_ASSOC))
//output
this generates an string literal too long error. And an normal ocifetch can't get more then 2000 chars. How can I get my data to PHP
Hope someone can help me out..
Thanks in advance..
Greetings Stefan.If you're loading your SWF from one server, and contacting
another server,
you need place the crossdomain.xml file on the other server
from which you're
requesting data, typically in the webroot.
That is, if you're trying to contact "
http://server/docroot/pages/php/request.php"
then you'd need to have a crossdomain.xml file at "
http://server/crossdomain.xml".
This crossdomain.xml policy file must include the domain from
which your
SWF was loaded in order for it to be allowed to contact this
domain.
Hello arpiyem,
> hi, i just uploaded to our remote host the files with
php and flex
> combination. here on my local computer, i was able to
retrieve data
> using my local database, i also tried to connect from my
local using a
> remote database. but when i uploaded the files, and
tried to connect
> to a red hat linux host i think, i cant make it to work.
i can see the
> interface but no data was retrieve. i googled some
possible options
> and used crossdomain, but still cant get it to work. im,
by the way,
> new to flex and would like to explore this great
technology. i was
> thinking the my tags in <mx:HTTPService> were
incorrect, i have
> url="
http://server/docroot/pages/php/request.php",
i also tried
> url="php/request.php", but still failed to retrieve the
> information.hope u can help me guys. thank you in
advance.
> -
Retrieve data from a dynamic page via loadURL
Hello.
I would like to ask you how it is possible to retrieve data
from a dynamic page (asp classic in my case) using the loadURL
method.
I would like to create an html authentication form (with
username and password fields). The loadURL method should call an
asp page and then pass to the usual function 'DoIfSucceded' the
results of the elaboration.
Of course I'm going to have a switch in the function in order
to make different actions depending from the results of the asp
page (authentication succeded or failed).
I had a look to the examples at this page:
Adobe
samples
Is there anyone who can explain clearly how the results data
must be written by the asp page and how the success function can
retrieve them ?
I thank you in advance for your help.loadURL() uses the the XMLHttpRequest Object so if the
content you return is XML, you have 2 choices for accessing your
data. You can either access it as a text string via the
XMLHttpRequest object's responseText property, or as a DOM document
via the XMLHttpRequest object's responseXML property:
function MySuccessCallback(req)
// If my data is XML, I can access the data that was sent
from the server
// as DOM elements via the XMLHttpRequest's responseXML
property.
var xmlDOM = req.xhRequest.responseXML;
// OR, you can access the data sent back from the server as
text via
// the XMLHttpRequest object's responseText property.
var xmlAsAString = req.xhRequest.responseText;
var req = Spry.Utils.loadURL("GET",
"/app/book.php?id=1&code=54321", true, MySuccessCallback);
If your serverside script wants to use some other format as a
response like JSON or plain text, then you can only access the data
as text via the responseText property.
--== Kin ==-- -
How to retrieve data from a web service
Hi
i am at very beginner level about web services.
I am searching for a simple example of retrieving data from a web services, but cant find.
How can i get xml data from a web service. i dont need to develop the web service it is already ready, i just need how could i fetch data from it.
Can somebody point out or give an example?
Thanks in advanceHi,
just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
Frank -
Retrieving data from different tables in the same time crash
Hi
this is probably the wrong way to do it, but this is how I did:
- I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
- I could make it work while enabling 1 or 2 of them. When the 3 are enabled, I get this error:
btw its a huge msg, I will trim it:
ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325] at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920] at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668] at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ... it continues forever.
the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
Any suggestion to make it work smoothly?
Thanks in advance,
btp~Hi
this is probably the wrong way to do it, but this is how I did:
- I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
- I could make it work while enabling 1 or 2 of them. When the 3 are enabled, I get this error:
btw its a huge msg, I will trim it:
ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325] at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920] at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668] at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ... it continues forever.
the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
Any suggestion to make it work smoothly?
Thanks in advance,
btp~ -
Retrieve data from cluster tables
hi
can any one explain me how to retrieve data from cluster tables
Regards
sachinyou can write a select
select * from KONV
into table it_konv
where <condition>
you cant join.. cluster tables.. -
Error while trying to retrieve data from BW BEx query
The following error is coming while trying to retrieve data from BW BEx query (on ODS) when the Characters are more than 50.
In BEx report there is a limitation but is it also a limitation in Webi report.
Is there any other solution for this scenario where it is possible to retrieve more than 50 Characters?
A database error occured. The database error text is: The MDX query SELECT { [Measures].[3OD1RJNV2ZXI7XOC4CY9VXLZI], [Measures].[3P71KBWTVNGY9JTZP9FTP6RZ4], [Measures].[3OEAEUW2WTYJRE2TOD6IOFJF4] } ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [ZHOST_ID2].[LEVEL01].MEMBERS, [ZHOST_ID3].[LEVEL01].MEMBERS ), [ZHOST_ID1].[LEVEL01].MEMBERS ), [ZREVENDDT__0CALDAY].[LEVEL01].MEMBERS ) ........................................................ failed to execute with the error Invalid MDX command with UNSUPPORTED: > 50 CHARACT.. (WIS 10901)Hi,
That warning / error message will be coming from the MDX interface on the BW server. It does not originate from BOBJ.
This question would be better asked to support component BW-BEX-OT-MDX
Similar discussion can be found using search: Limitation of Number of Objects used in Webi with SAP BW Universe as Source
Regards,
Henry -
Query Report:To Retrieve Data from A/R Invoice and A/P Invoice
Hii Experts,
I am a new Sap B1 Trainee.I am facing a problem when retrieving data from A/R Invoice and A/P Invoice in order to track
Expenditure and Revenue according to a Bussiness partner,
I am using union to retrieve the information,but it is saying a error that Error Converting Varchar to Numeric and also
i would like to know how can i show the total final payment by reflecting Downpayments in A/R Invoice and A/P Invoice
With Regards
Cherry.Hii.
My Sap B1 version is 8.8.1 and patch level is 20. Actully i need a scenario where i can able to show both Expenditure and Revenue of a particular bussiness partner and profit/loss in a single query report.
I need some tips regarding this,When i am doing union i am getting conversion error converting varchar to numeric when i take
Sum(Line Total) from OINV and Sum(line total) OPCH group by docdate and docentry and BP .
and another scenario is how to deduct A/P downpayment or A/R downpayment from A/P invoices and A/R invoice to get the final Revenue and Expenditure ..
Thanks & Regards
Cherry -
Cant get data from text file to print into Jtable
Instead of doing JDBC i am using text file as database. I cant get data from text file to print into JTable when i click find button. Goal is to find a record and print that record only, but for now i am trying to print all the records. Once i get that i will change my code to search desired record and print it. when i click the find button nothing happens. Can you please take a look at my code, dbTest() method. thanks.
void dbTest() {
DataInputStream dis = null;
String dbRecord = null;
String hold;
try {
File f = new File("customer.txt");
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis);
dis = new DataInputStream(bis);
Vector dataVector = new Vector();
Vector headVector = new Vector(2);
Vector row = new Vector();
// read the record of the text database
while ( (dbRecord = dis.readLine()) != null) {
StringTokenizer st = new StringTokenizer(dbRecord, ",");
while (st.hasMoreTokens()) {
row.addElement(st.nextToken());
System.out.println("Inside nested loop: " + row);
System.out.println("inside loop: " + row);
dataVector.addElement(row);
System.out.println("outside loop: " + row);
headVector.addElement("Title");
headVector.addElement("Type");
dataTable = new JTable(dataVector, headVector);
dataTableScrollPane.setViewportView(dataTable);
} catch (IOException e) {
// catch io errors from FileInputStream or readLine()
System.out.println("Uh oh, got an IOException error!" + e.getMessage());
} finally {
// if the file opened okay, make sure we close it
if (dis != null) {
try {
dis.close();
} catch (IOException ioe) {
} // end if
} // end finally
} // end dbTestHere's a thread that loads a text file into a JTable:
http://forum.java.sun.com/thread.jsp?forum=57&thread=315172
And my reply in this thread shows how you can use a text file as a simple database:
http://forum.java.sun.com/thread.jsp?forum=31&thread=342380 -
Retrieve data from a list in SharePoint 2013 provider hosted App using CSOM
I have developed a provider hosted app in SharePoint 2013. As you already know, Visual Studio creates web application and SharePoint app. The web application gets hosted inside IIS and the SharePoint App in SharePoint site collection. I'm trying to get
data from a list hosted in SharePoint using CSOM. But I get ran insecure content error.
here is my code in Default.aspx
<script type="text/javascript" src="../Scripts/jquery-1.8.2.js"></script>
<script type="text/javascript" src="../Scripts/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../Scripts/SP.Core.js"></script>
<script type="text/javascript" src="../Scripts/INIT.JS"></script>
<script type="text/javascript" src="../Scripts/SP.Runtime.js"></script>
<script type="text/javascript" src="../Scripts/SP.js"></script>
<script type="text/javascript" src="../Scripts/SP.RequestExecutor.js"></script>
<script type="text/javascript" src="../Scripts/App.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="Get title via CSOM" onclick="execCSOMTitleRequest()" /> <br />
<input id="Button2" type="button" value="Get Lists via CSOM" onclick="execCSOMListRequest()" />
</div>
<p ID="lblResultTitle"></p><br />
<p ID="lblResultLists"></p>
</form>
</body>
</html>
and App.js is:
var hostwebUrl;
var appwebUrl;
// Load the required SharePoint libraries
$(document).ready(function () {
//Get the URI decoded URLs.
hostwebUrl =
decodeURIComponent(
getQueryStringParameter("SPHostUrl")
appwebUrl =
decodeURIComponent(
getQueryStringParameter("SPAppWebUrl")
// resources are in URLs in the form:
// web_url/_layouts/15/resource
var scriptbase = hostwebUrl + "/_layouts/15/";
// Load the js files and continue to the successHandler
//$.getScript(scriptbase + "/MicrosoftAjax.js",
// function () {
// $.getScript(scriptbase + "SP.Core.js",
// function () {
// $.getScript(scriptbase + "INIT.JS",
// function () {
// $.getScript(scriptbase + "SP.Runtime.js",
// function () {
// $.getScript(scriptbase + "SP.js",
// function () { $.getScript(scriptbase + "SP.RequestExecutor.js", execCrossDomainRequest); }
function execCrossDomainRequest() {
alert("scripts loaded");
function getQueryStringParameter(paramToRetrieve) {
var params = document.URL.split("?")[1].split("&");
var strParams = "";
for (var i = 0; i < params.length; i = i + 1) {
var singleParam = params[i].split("=");
if (singleParam[0] == paramToRetrieve)
return singleParam[1];
function execCSOMTitleRequest() {
var context;
var factory;
var appContextSite;
var collList;
//Get the client context of the AppWebUrl
context = new SP.ClientContext(appwebUrl);
//Get the ProxyWebRequestExecutorFactory
factory = new SP.ProxyWebRequestExecutorFactory(appwebUrl);
//Assign the factory to the client context.
context.set_webRequestExecutorFactory(factory);
//Get the app context of the Host Web using the client context of the Application.
appContextSite = new SP.AppContextSite(context, hostwebUrl);
//Get the Web
this.web = context.get_web();
//Load Web.
context.load(this.web);
context.executeQueryAsync(
Function.createDelegate(this, successTitleHandlerCSOM),
Function.createDelegate(this, errorTitleHandlerCSOM)
//success Title
function successTitleHandlerCSOM(data) {
$('#lblResultTitle').html("<b>Via CSOM the title is:</b> " + this.web.get_title());
//Error Title
function errorTitleHandlerCSOM(data, errorCode, errorMessage) {
$('#lblResultLists').html("Could not complete CSOM call: " + errorMessage);
function execCSOMListRequest() {
var context;
var factory;
var appContextSite;
var collList;
//Get the client context of the AppWebUrl
context = new SP.ClientContext(appwebUrl);
//Get the ProxyWebRequestExecutorFactory
factory = new SP.ProxyWebRequestExecutorFactory(appwebUrl);
//Assign the factory to the client context.
context.set_webRequestExecutorFactory(factory);
//Get the app context of the Host Web using the client context of the Application.
appContextSite = new SP.AppContextSite(context, hostwebUrl);
//Get the Web
this.web = context.get_web();
// Get the Web lists.
collList = this.web.get_lists();
//Load Lists.
context.load(collList);
context.executeQueryAsync(
Function.createDelegate(this, successListHandlerCSOM),
Function.createDelegate(this, errorListHandlerCSOM)
//Success Lists
function successListHandlerCSOM() {
var listEnumerator = collList.getEnumerator();
$('#lblResultLists').html("<b>Via CSOM the lists are:</b><br/>");
while (listEnumerator.moveNext()) {
var oList = listEnumerator.get_current();
$('#lblResultLists').append(oList.get_title() + " (" + oList.get_itemCount() + ")<br/>");
//Error Lists
function errorListHandlerCSOM(data, errorCode, errorMessage) {
$('#lblResultLists').html("Could not complete CSOM Call: " + errorMessage);
Any solution is appreciated.Hi,
To retrieve data from list in your provider-hosted app using SharePoint Client Object Model(CSOM), you can follow the links below for a quick start:
http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx
http://blogs.msdn.com/b/steve_fox/archive/2013/02/22/building-your-first-provider-hosted-app-for-sharepoint-part-2.aspx
Best regards
Patrick Liang
TechNet Community Support -
Retrieve data from a synonym in oracle database through db connect
Hi Everyone,
I have created certain synonym for some tables in oracle. I want to retrieve data from it through db connect but where through source system and then selecting database tables, only tables and views are available.
Synonyms are not available to create data sources and retrieve the data from it. Why is it so. Is this a limitation of db connect.
Can anyone please let me know about it.
Thanks,
Joshua.Hi,
You want to import data from an external Oracle database into your BW 3.X. To do this, you can connect the external database to the BW 3.X release as a source system using the external database connect. BW 3.X here represents BW 3.0, BW 3.1 and BW 3.5 because in other (DB relevant) parts, all 3 versions are based on the same source code.
General information
The above function allows you to load data from an external Oracle database (not a BW database) into your BW 3.0 system.
There may also be constellations which cannot be used directly through the DB Connect access. However, it should be possible to find an adequate, customer-specific solution for most of these scenarios.
In such situations, the resulting work falls into the area of Consulting and cannot be handled via Support.
Successful implementation of a connection requires corresponding expertise and experience in the use of the source database in the areas:
- Tools
- SQL syntax
- DB-specific functions
Corresponding knowledge of the source application is also required to ensure that semantically relevant data arrives in the BW system.
Procedure
You should execute the following steps to connect the source system (Q) to the BW system (BW):
Installing the client software on an BW application server
Of course, you only need to install the client software if you are using BW with a non-Oracle database.
Use the Oracle setup program on the database CD (runInstaller on Unix) to start the OracleInstaller. Follow the program instructions and the DB installation instructions to install the Oracle Client software on BW.
Testing connection setup from BW to Q
After you install the client software on BW, try to set up a connection from BW to the server on Q. You may need to adjust the tnsnames.ora or sqlnet.ora files for this, to introduce the Oracle systems (to which contact should be made) to BW. You can test the connection by executing the command "tnsping QDB" on BW to check whether the client has established contact to the QDB database on the Q system.
Creating a separate U user in Q
We recommend that you create a separate U user in Q for connection to BW. This means that authorization and administration questions can be solved centrally.
Displaying data sources in Q for the U user
To provide U data for users other than U, you can create views on other user tables as user U:
CREATE OR REPLACE VIEW viewname AS
SELECT * FROM QDB.tablename
You may have to grant SELECT privileges to user U in the QDB schema:
GRANT select ON QDB.tablename TO U
Of course, you can also restrict or reformat data in the view arrangement (for example, change from internal date format into the SAP date format). JOIN operations using several tables are also available.
!!! Synonyms do not yet work!!!
Synonyms that you can create as described below are another option for providing a complete table for the user U:
CREATE SYNONYM synoname FOR QDB.tablename
!!! Synonyms do not (yet) work!!!
After you have displayed the require data for user U, you can simply use
SELECT * FROM <view or table>
on the Q system to check which data is returned.
You can now open a link to Q as user U in the BW system with SQLPLUS and check, using the same SELECT, whether this data is also seen in the Oracle client. If this is not the case, there is probably a connection problem.
Creating a connection from BW to Q in BW
Including data sources of user U user in Q in BW.
Solution
Supported BW, Basis and BW 3.0B database versions, Basis 6.20 Support Package 2 (or higher)
Oracle 8.1 (or higher, see below)
Possible problems
- Synonyms do not (yet) work!
Up to now, only tables and views have been used as data sources for the DB Connect from the R3 Basis. As soon as synonyms are also used in the Basis, you will be able to convert created views (or even replicated tables) to synonyms as a workaround.
With Basis 6.40 at the earliest, therefore as of BW 3.5, you will also be able to use synonyms. Until then, the following will help:
CREATE VIEW <view_on_synonym> AS SELECT * FROM <synonym>
- The source DB must have at least the release version of the BW DB.
Oracle only ensures the support of client-server links if the version of the client is not higher than that of the server. So if BW has Oracle version 8.1 and, as in the case of Dbconnect, is run as a client against the server of the source database, the source database must have at least release Oracle 8.1 or higher.
Of course, you have the option to install the Oracle client software of a lower version and then use this for the DB connect. This is also the procedure used to work with a DB connect on external databases of other vendors.
Furthermore, the implementation of the DBconnect function in BW uses SAP Basis functions. Specifications of Oracle 8.1 database catalogs are used here. The source database must therefore have at least Version 8.1.
- Oracle Client Software Version
If you want to connect from an Oracle BW DB to an Oracle source DB, for the DB connect you naturally use the client software that you already installed on each application server.
If you want to connect from a non-Oracle BW DB to an Oracle source DB, check item 3 of note 521230 to see which Oracle client software version is released with your BW R3 kernel and use this version.
- Date and time fields in Oracle and their conversion into SAP-compatible column formats
Example with a DATE field:
Since a SAP table does not have a DATE field (date values are NUMC(8) and time specifications are NUMC(6)), we will use the Oracle DBA_TABLES system table as an example.
SQL> desc dba_tables;
The Oracle DBA_TABLES system table has a LAST_ANALYZED field. This is a DATE type field and is recognized as a date field of 7 characters by DBA_CONNECT. However, the import does not work because the DATE is a 7-byte conglomerate of "...century, year, month, date, hour, minute and second." (extract from the Oracle documentation).
To make this DATE field legible for DB connect, you must use the TO_CHAR function in a VIEW. This should display the following examples:
SQL> select LAST_ANALYZED from dba_tables
where table_name like 'RS%' and rownum < 10 ;
The formatting used here is the default used implicitly by SQLPLUS.
SQL> select to_char(LAST_ANALYZED,'YYYYMMDD') as dat from dba_tables where table_name like 'RS%' and rownum < 10 ;
The result now has the SAP compatible format YYYYMMDD and should be loaded correctly by the DB connect as a date.
SQL> select to_char(LAST_ANALYZED,'HH24MISS') as tim from dba_tables where table_name like 'RS%' and rownum < 10 ;
The result now has the SAP compatible format HHMMSS and should be loaded correctly by the DB connect as a time.
You can use the following example for more detailed experiments:
SQL> select to_char(
TO_DATE('03-FEB-2001 04:05:06','DD-MON-YYYY HH24:MI:SS'),
'YY-MM-DD HH24-MI-SS') as datim from dual;
with the result:
DATIM
01-02-03 04-05-06
When you create a VIEW and use the TO_CHAR function (or other functions), you should easily be able to avoid problems with the interpretation of date/time specifications (and other reformatting).
Details about the functions and the formats are contained in the Oracle documentation.
- Special characters
A words that contain special characters can only be imported correctly if the code pages in BW and in the source system are identical. If the code pages are not the same, DB Connect can be used if the characters to be imported appear under the first 127 characters of the character set.
The use of multibyte code pages in the source system for saving data using character sets with more than 256 characters (Kanji, Katakana, Hiragana, Korean, Chinese, Tagalog, Khmer, Arabic, Cherokee, and so on) can cause the characters to become corrupt.
For questions concerning the code pages, also refer to the FAQ note 606359 and question/answer 19 that appears there. -
Retrieve data from a large table from ORACLE 10g
I am working with a Microsoft Visual Studio Project that requires to retrieve data from a large table from Oracle 10g database and export the data into the hard drive.
The problem here is that I am not able to connect to the database directly because of license issue but I can use a third party API to retrieve data from the database. This API has sufficient previllege/license permission on to the database to perform retrieval of data. So, I am not able to use DTS/SSIS or other tool to import data from the database directly connecting to it.
Here my approach is...first retrieve the data using the API into a .net DataTable and then dump the records from it into the hard drive in a specific format (might be in Excel file/ another SQL server database).
When I try to retrieve the data from a large table having over 13 lacs records (3-4 GB) in a data table using the visual studio project, I get an Out of memory exception.
But is there any better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?
Any help on this problem will be highly appriciated.
Thanks in advance...
-Jahedur Rahman
Edited by: Jahedur on May 16, 2010 11:42 PMGirish...Thanks for your reply...But I am sorry for the confusions. Let me explain that...
1."export the data into another media into the hard drive."
What does it mean by this line i.e. another media into hard drive???
ANS: Sorry...I just want to write the data in a file or in a table in SQL server database.
2."I am not able to connect to the database directly because of license issue"
huh?? I never heard this question that a user is not able to connect the db because of license. What error / message you are getting?
ANS: My company uses a 3rd party application that uses ORACLE 10g. And my compnay is licensed to use the 3rd party application (APP+Database is a package) and did not purchased ORACLE license to use directly. So I will not connect to the database directly.
3.I am not sure which API is you are talking about, but i am running an application of the visual studio data grid or similar kind of controls; in which i can select (select query) as many rows as i needed; no issue.
ANS: This API is provided by the 3rd party application vendor. I can pass a query to it and it returns a datatable.
4."better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?"
ANS: As I get a system error (out of memory) when I select all rows in a datatable at a time, I wanted to retrieve the data in multiple phases.
E.g: 1 to 20,000 records in 1st phase
20,001 to 40,000 records in 2nd phase
40,001 to ...... records in 3nd phase
and so on...
Please let me know if this does not clarify your confusions... :)
Thanks...
-Jahedur Rahman
Edited by: user13114507 on May 12, 2010 11:28 PM -
Retrieve data from a db stuck in upgrade mode
Is there any clever ideas about how to retrieve data from a database that can only be started in upgrade mode? I can select my user data but cannot think of any feasible way to retrieve it out of the database in a format that i would be able to use to import into another clean/new database.
History:
10.2.0.4P26 oracle 32 bit on windows 2003 server
we are trying to recover from a power failure where we lost our c drive.
datafiles appeared to be intact, but the database has some corruption in the dictionary and it cannot be started without the upgrade option, it gets a bootstrap error if started without upgrade option.Pl post the complete bootstrap error message. Have you opened an SR with Support ?
Unable To Open Database After Upgrade :Error ORA-01092 (Doc ID 435337.1)
Recovery Through Upgrade returns ORA-1092 on Open (Doc ID 560417.1)
HTH
Srini -
Retrieve data from a non-peoplesoft application using HTTP Get
I need to retrieve data from a non-peoplesoft application. They want us to submit a HTTP GET request to their URL with a series of parameters. I am thinking about using HTTP Targert connector to accomplish this. Does anyone have sample peoplecode?
Currently we are on 8.51.10 Tools...
If there is any better way .. please let me know ..I have used HTTP Get to get XML file from a government sanction list by hitting URL http://www.treasury.gov/ofac/downloads/sdn.xml
There is a delivered PS program that does that for vendor sanctions. I had to get the online setup correctly by creating a new custom Node with HTTP Target Connector. The program name is BSP_IMPORT. The below code is responsible for the calling the node and retrieving the data. Play around with the code below see if you can get it to meet your needs.
BSP_IMPORT_AET.BANKNODE.Value is just the custom external code that I created.
PMT_FLAT_FILE_INBOUND message is just a none rowset based message to use the web service call.
Local TR:FileUtilities:FTP &oFTPUtil = create TR:FileUtilities:FTP();
+/* HTTP */+
+/*******************************************************************************/+
Local Message &msgHTTP;
Local Message &msgResult;
+&msgHTTP = CreateMessage(Message.PMT_FLAT_FILE_INBOUND);+
+&oFTPUtil.PopulateFTPGetIBInfo(&msgHTTP, BSP_IMPORT_AET.BANKNODE.Value);+
+&msgResult = %IntBroker.ConnectorRequest(&msgHTTP);+
+/* check to see if the file is wrapped */+
+&strAllLines = &msgResult.GenXMLString();+
+&strAllLines = Substitute(&strAllLines, Char(26), " "); /* Added this line to remove invalid characters */+
+/*******************************************************************************/+
Edited by: Maher on Mar 20, 2012 3:28 PM
Maybe you are looking for
-
Error messages from Error Log using using CJ40 transcation
Hi All, when i was doing call transcation for CJ40 transcation. on the screen while check syntactical error check there were some errors below. Total plan value less than cumulative plan value - l2: 2,900.00 < 8,900.00
-
I want FF to automatically fill in my user ID and password when I visit my banks website. I tried looking at the cookies repair information and that does not seem to help. What else?
-
HT204266 Missing app in App Store ?
I'm trying to download an app called wemo baby. have got a baby monitor that works through apps but the app is not showing on the App Store on my ipad2. I have found it in the App Store on my iphone4 and also on my partners ipad1 and we bioth downlo
-
Restoring Ipod Touch g2 Software Problem
Hi, I recently made an attempt to upgrade to the new OS4 but it crashed my iPod Touch g2 32g. After 13 hours of troubleshooting I finally got it boot up to the restoration process. However, as the restoration went toward to the end of the it gave out
-
How to import pre keyed footage with transparent background?
Hello I am working on a small action scene and i am trying to import pre keyed muzzle flask without the black background. i tryied everything : saving the link to the desktop as " save file as" , making the the optimize video box is unchecked, show a