Create the connection to the Oracle database

How do I create oracle database connection using flex.

Please mention all necessary codewise and sage (for flex as well as Oracle9i) configuration

Thanks in advance.

VjFlex,

looking at your line of code

url="DataConn.php?lal='sds'"

I would not have thought you need them ' brands around sds. Unless your php code is something dindane special to manipulate, you would put normally just lal = sds and everything would be fine.

You also say "Please pass the asp.net code, you did to do the same thing. Of course, I can't at the moment past on the actual code but the principles are the following (I use c# in ASP.NET as language server-side in this case and SQL server in the database and did not show the string for connection etc - you already know how to do as your database)

sql_call = "select top 10 t1.a, t2.b, t2.c from t1, t2 where t1.id=t2.id order by a";sql_server_command = new SqlCommand(sql_call, sql_server_connection);sql_server_command.CommandType = CommandType.Text;sql_server_data_adapter = new SqlDataAdapter(sql_server_command);dataset = new DataSet();sql_server_data_adapter.Fill(dataset);datatable = dataset.Tables[0];call_encoded = "";for (int i = 0; i < datatable.Rows.Count; i++)  {    data_record = "" +      "" + datatable.Rows[i][0].ToString() + "" +      "" + datatable.Rows[i][1].ToString() + "" +      "" + datatable.Rows[i][2].ToString() + "" +      "";    call_encoded += data_record;  } // for icall_encoded += "";return call_encoded;

Hope that helps. You can see that the returned table is converted into XML so that once back in Flex, it can be easily managed.

Richard

Tags: Flex

Similar Questions

  • Target of hyperlink connects since the Outlook file in the Oracle database mail

    Greetings.
    Lack of permissions, I can't create text file on the UNIX server.
    This will not be changed.
    I saved the file in the Oracle 11 g database.

    I want to send e-mail to PL/SQL with attached file.
    No UNIX don't scripts at all.

    It's a big file.
    Thought has crossed my mind.

    Can I send e-mail to PL/SQL with a hyperlink that connects to the file that is stored in the Oracle database?
    The target of the link is a file stored in the Oracle database.

    Did anyone done this before?

    Let me know your ideas.

    Thank you.

    Freq Oracle wrote:

    I want to send e-mail to PL/SQL with attached file.
    No UNIX don't scripts at all.

    Can be done using UTL_SMTP or more recent UTL_MAIL.

    Attachments to emails are just that - the content of the file is attached to the body of the mail. Mail arrives at its destination, the mail reader recognizes the attachment and allows it to be saved to disk (or open/read).

    It's standard stuff... See MIME for more details on how to build a body of message with attachments.

    Can I send e-mail to PL/SQL with a hyperlink that connects to the file that is stored in the Oracle database?
    The target of the link is a file stored in the Oracle database.

    Yes. You need a web server that has been configured with Oracle "+ access +"-the default is using the Apache Oracle server which includes a module called mod_plsql. This module allows the web browser to use a URL that refers to a procedure from PL/SQL web enabled in a specific database schema - and pass parameters (as part of the URL query string) to the proceedings.

    You can also use Oracle EPG (Extended procedure gateway according to me, is what does the acronym). This provides a web server directly within the Oracle instance using Oracle XDB (integrated database of XML). It also has a module of type mod_plsql which provides that a web interface (via http) enabled PL/SQL procedures.

    This procedure can be a procedure "+ document download. Oracle provides a system procedure called WPG_DOCLOAD.download_file ()+ you can use inside this active web PL/SQL procedure. This will return the contents of the blob/clob as a 'file' in the web browser.

    For example, a download web-enabled simplistic procedure will look something like this:

    create or replace procedure downloadFile( fileName varchar2 ) is
            b       blob;
            mimeType varchar2(50);
    begin
            select
                file_content, mime_type  into b, mimeType
            from my_documents where file_name = fileName;
    
            OWA_UTIL.mime_header( mimeType, false );
            HTP.p('Content-Length: ' || DBMS_LOB.getlength(b));
            OWA_UTIL.http_header_close;
            WPG_DOCLOAD.download_file( b );
    end;
    

    The URL will look like this:

    http://my-webserver.my-domain.com:7777/pls/ora/scott.downloadfile?filename=somefile.doc
    

    where:
    Scott.DownloadFile = name of the PL/SQL procedure
    filename = somefile.doc = name values of the parameter to pass to the procedure

  • Connect to the Oracle database fails when you use Microsoft ODBC or OLE DB Driver

    There was a problem when you apply the KB3126587 hotfix where connections to an Oracle database using the Microsoft ODBC driver fails if run from automated processes. Running the same process manually would succeed. The update issued KB3147071 solved the problem successfully.

    Yesterday, several patched have been applied and the problem came back. The patches are: KB2862152, KB2868626, KB3163244, KB3168965, KB3170455, KB3163251.

    I saw yet no acknowledgement or difficulty of Microsoft. I prefer not to uninstall security patches, but it is a problem of production.

    Any ideas what specific patch maybe breaking it again?

    Thank you

    Josh

    Server: Windows 2008 R2

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • connection / disconnection of the oracle database

    Hello
    I looked upwards and downwards in the documentation of oracle for a good reason why we should not connect to the oracle database, delivery time of 4 or 5 Oracle sql disconnect, reconnect 4-5 sql statements and disconnect again(using sqlplus).
    What I currently have is an application that has this kind of behavior that would be as connect/disconnect to the database over 300 times in 25 minutes.
    I know that this is not scalable, but would like to show the programmer in the oracle documentation that is not a recommended bestpractes.
    Any help will be appreciated.

    What you can explain the developer that is whathappens when a connection is given and terminated, the concept of the PGA and server allocation and dealloction process. You can include more use of server resources when all that happens. Once this part is well to him, you can tell him that hisapplication this constant opening and closing of session, it don't let not the server works optimally as morethan optimize work of its apps, server would be busy giving him the connection later by removing its connetion.

    Just take a look at the documentation and found this guide, PT
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14211/design.htm#CJHFIHFC

    >
    Factors that may prevent a linear scaling include:

    Configuration, implementation and poor application design

    The application has the greatest impact on scalability. For example:

    The poor schema design can cause expensive SQL that do not evolve.

    Poor transaction design can cause problems of locking and serialization.

    Bad connection management can cause periods of poor response and reliable systems
    >

    Would that help?
    HTH
    Aman...

    Published by: Aman... April 26, 2009 15:29
    Adding link guide PT

  • Creating the Oracle user... !

    Hi all

    I have a small doubt in the creation of the user.

    Consider that we have 5 users A, B, C, D, E

    that are created manually by the user SYS and DBA privilege is granted to all users of five.

    These 5 users can now create other users according to the user request.

    Consider the user XYZ is created by the user.

    My doubt is how can we know that XYZ user is created by the user, but not by other users?

    Could you please help...

    Thanks in advance.

    Hello Raymond vinay

    You can use the view of the DBA_AUDIT_TRAIL dictionary.

    THE USER SYS

    ========

    create a user identified by one;

    Connect to A grant;

    grant DBA to a.;

    THE USER HAS

    ======

    create user B identified by b;

    Grant connect to B;

    grant DBA to B;

    THE USER SYS

    ========

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SELECT the username, userhost, timestamp, obj_name, os_username, action_name

    OF DBA_AUDIT_TRAIL

    WHERE username = "A".

    ;

    OS_USERNAME USERNAME USERHOST TIMESTAMP OBJ_NAME ACTION_NAME

    ------------ ---------- ----------------- -------------------- -------- -------------

    bergerd A RTC_PROD\PCC0564 27 May 14 LOGON

    bergerd A RTC_PROD\PCC0564 27 May 14 B CREATE USER

    bergerd A RTC_PROD\PCC0564 27 May 14 CONNECT ROLE GRANT

    bergerd A RTC_PROD\PCC0564 may 27, 14 GRANT SYSTEM

    bergerd A RTC_PROD\PCC0564 27 May 14 DBA GRANT ROLE

    bergerd A RTC_PROD\PCC0564 27 May 14 closure of SESSION

    bergerd A RTC_PROD\PCC0564 27 May 14 LOGON

    bergerd A RTC_PROD\PCC0564 27 May 14 LOGON

    8 selected lines.

    SQL >

    So, user created user B as you can see in the view.

    The AUDIT_TRAIL parameter must be set at least at DB. (you can check this in the parameter$ v)

    I hope that helps!

    Kind regards

    David

  • How to find the name of the Oracle database server?

    People,

    Hello. I installed Oracle Database 11 g 2 OS Oracle Linux 5. The installed directory is/home/user/OracleDB_Home and/home/user/OracleDB_Base.

    Host name is "mylinux". Name of the database instance is PT853.

    I use "mylinux" as the name of the database server, it does not work. I use another way to do as below:

    Export ORACLE_HOME = / home/user/OracleDB_Home

    Can I use "mylinux ORACLE_HOME" as the name of the database server, it does not work either.


    My question is:

    How to find the name of the database server Oracle with Oracle Linux 5 OS?


    Thank you.

    You must learn the basic of database Oracle.

    Please don't regard it not same as SQL server in terms of configuration.

    You never specify the database server name in Oracle.

    You specify the host name in only two places, 1) Tnsnames.ora/JDBC/ODBC (or any client you want to connect) and listener.ora) 2.

    There was nothing called specify the name of the Oracle database from an oracle database server.

    Concerning

    Anurag.

  • How to start the oracle database server and its client in windows 8

    Hi all

    I am a new entry in this forum and I am a beginner with oracle database.

    I always used SQL Server as the database, and it was easy to use after installation.

    With management program configuration of SQL Server I could to start service SQL Server (SQLEXPRESS) and the database server start!

    With SQL Server management studio, I was able to launch the client application, then was to establish a connection to the server and everything worked great!

    Now, how to work with the oracle database?

    I installed the oracle server and client version 11g R2 in windows 8, but how do I start the database?... and how can I start the client application to query?

    best wishes in advance.

    PS: Sorry for my English.

    If you are on the same machine, the only service that you absolutely need to start is the database service.  In your case OracleServiceSYSDBA (hmmm... How did you find with this name?).

    For queries, you can use SQL * Plus which should also be installed.  If you want something GUI, you can use SQL Developer (you need to install separately I think).

  • How do I get the name of the web page in v$ session table in the Oracle database

    We have asp.net web application hosted on IIS (windows) and the connection to the Oracle (10g) database.


    When I query the table v$ session in the database as a Jr.DBA, I don't see the name of the program as "w3wp.exe.
    coming from the computer host IIS (web server).

    Now, it is difficult to diagnose as session in the database that refers to what web page in the web application.

    If I have 10 web pages open in my web application connecting to the Oracle database, now if I wanted to go
    session info, when I browse the v$ session all it shows me what "w3wp.exe.

    Now is there a way to get the name of the web page in the session of $ v.

    (maybe he needs a few changes to the code in the application web asp.net, change in the configuration of IIS web server as well).

    Let me know

    Dear johnpau2013,

    It's an interesting question. See the documentation below and see if they help you or not?

    DBMS_APPLICATION_INFO;

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#CHEEFBBD
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#i999290
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#ARPLS003

    Hope that helps.

    Ogan

  • Question about the Oracle database resource management

    Good evening
    I have a question about Oracle database Resource Management (DRM) for Oracle Database 10 g. I had an incident which, in a development/UAT environment (different instances, same box, don't ask), a developer wrote a wrong SQL statement that consumed 99% of the CPU. Currently, there is no limit of resources on two cases of db, and the developers don't want limits. However, my manager wants a method to prevent something like this does not happen. If I use the Oracle database resources management, create a consumer group (called "DevEnv") at 40% CPU usage, what will happen if a user of DevEnv runs a bad SQL statement that normally consumes 90% CPU again? Anyone would take a different approach? Thank you.

    Sincerely,
    Sho Fukamachi

    782718 wrote:
    If users in the case of "db_uat" use 60% CPU would be users who belongs to DevEnv pending 'db_test' cannot be used more than 40% CPU, so their queries become slower at their end? I would like to know if this behavior works the same in an environment of multiple instances. Thank you.

    Yes, because the available processor would be 40%, they use more, while.

  • Loading data to SQL server for the Oracle database

    I want to create a table in oracle db table in sql server. Table is huge that he has obtained the documents 97,456,789.
    I created the link (HS) db in the oracle database that points to the sql server. I choose this oracle db on the link table.

    Select * from 'dbo '. "T1@dblink;

    I shot below to create the table.
    create table t2 nologging parallel (degree = 3) as select * from 'dbo '. "T1@dblink;
    and its taking a long time... but its operation...

    is there any other method to do this and and fill the table in oracle db faster.

    Please notify. Thank you.

    vhiware wrote:
    create table t2 nologging parallel (degree = 3) as select * from 'dbo '. "T1@dblink;
    and its taking a long time... but its operation...

    I doubt that parallel processing will be used because it is unique to Oracle (using rowid varies in general) and not SQL-Server.

    is there any other method to do this and and fill the table in oracle db faster.

    Part of the performance overhead is to pull that data from SQL Server to Oracle in the whole of the liaison network between them. This can be accelerated by compressing the data first - and who then transfer them over the network.

    For example: using + bcp + to export the data in the SQL Server box to a CSV file, compress/zip file, scp/sftp file Oracle and then to unzip there. In parallel and direct treatment of load can now be done using SQL * Loader to load the CSV file into Oracle.

    If it is a basic Linux/Unix system, the process of decompression/unzip can be run in parallel with the SQL * process Loader by creating a pipe between the two – where the decompression process writes data uncompressed in the pipe and SQL * Loader reads and loads the data that is available through the pipe.

    Otherwise you are PQ own transformation. Assume that the data is date varies. You can create a procedure on Oracle that looks like this:
    {code}
    create or replace procedure as copyday (day) is
    Start
    Insert / * + append * / into local_tab select * from remote_tab@remotedb where col_day = day;
    -Add logging info, validation, etc.
    end;
    {code}

    You can now start 10 or more of these different days and run it in the background using DBMS_JOB.

  • Convert flat file to XML document and store it in the Oracle database

    First of all:
    I have a flatfile and created an external table to read this file in Oracle
    Now, I want to create an XML document for each line and insert in the Oracle database, I think as XMLtype.
    Could you please give me some information/steps.

    Second:
    Are there performance issues, because every day, I need to check that the XML document stored in the database against the next file.
    Thank you.

    I won't tell it not in the same words that Marco used, but your solution is impassable and an invitation for bad things to happen.

    Wait miserable performance, and you will not be disappointed.

    The concept of total flexibility works up a code that you depend on has no idea what to do with what is playback.
    Will happen to enough short term and is roughly the equivalent of the absurdity of Java to be independent of the database.

    I would recommend you take the concept and consider, with your data volumes, something more likely to succeed.

  • Create the remote database using dblink view

    Hello

    I have a small question for you.

    Is it possible to create the remote database using dblink view? Following syntax error

    create discover ViewName@DbLinkDame (ColumnName) as
    (select 1 double)

    "ORA-00905: lack of keyword.

    Is this possible at all?
    And particularly - is this possible when the remote database is MSSQL and I use heterogeneous services?

    I really appreciate your help
    Best regards
    Wojtek

    Published by: wojpik on October 21, 2009 03:59

    This is a workaround for a remote Oracle database (use the queue of work), however:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:597877500346143250

    but I have no idea if something similar is possible for MSSQL...

  • Create the new database of complete hot RMAN, atrchivelog and backup control files

    Hi all

    I'm trying to create the new database U1234 of P1234 of full hot RMAN, atrchivelog and control P1234 file backup.

    Here are my steps

    (1) to restore the control file

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restorecontrol.out
    startup nomount pfile=/u01/oradba/admin/U1234/scripts/restore/restore071009U1234/initP1234.ora;
    the value of DBID 6767676;
    run
    {
    allocate channel d1 type disk;
    controfile catering to ' / u02/oradba/U1234/control/P1234_control01.ctl';
    Restore controlfile to ' / orarman/restore/P1234/cf_P1234_c-00';
    change the editing of the database;
    }
    EXPRESSIONS OF FOLKLORE

    (2) database stop then restart the database with the new contraol file using pfile.

    (3) restore data files

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restore_dbfiles.out
    Run {}
    the value of newname for datafile 1 to ' / u05/oradba/U1234/dbfile/U1234_system01.dbf';
    the value of newname for datafile 2 to ' / u05/oradba/U1234/dbfile/U1234_undotbs01.dbf';
    the value of newname for datafile 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    the value of newname for datafile 4 to ' / u06/oradba/U1234/dbfile/U1234_users_d01.dbf';
    the value of newname for datafile 5 to ' / u06/oradba/U1234/dbfile/U1234_tools_d01.dbf';
    the value of newname for datafile 6 to ' / u08/oradba/U1234/dbfile/U1234_audt_x01.dbf';
    the value of newname for datafile 7 to ' / u07/oradba/U1234/dbfile/U1234_audt_d01.dbf';
    the value of newname for datafile 8 to ' / u07/oradba/U1234/dbfile/U1234_audt_d02.dbf';
    the value of newname for datafile 9 to ' / u08/oradba/U1234/dbfile/U1234_lh_x01.dbf';
    restore the database;
    switch datafile;
    }
    EXPRESSIONS OF FOLKLORE


    ORA-27063: number of bytes read or written is incorrect
    SVR4 error: 28: no space is available on the device

    Now, I missed the space during the restoration of data files and want to restore remaining who is 3 and 4 of datafile datafile.

    Can you please let me know how I can restore it.

    I need to change the names of database after the successful restoration.

    DBVERSION 10.2.0.1
    operating system: solaris 10

    Thanks in advance.

    Hello..

    Do you have free space? If Yes, then you can try: -.

    RUN {}
    SET NEWNAME for DATAFILE 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    RESTORE THE 3 DATA FILE;
    DATAFILE 3 SWITCH;
    }

    [http://www.oracle-base.com/articles/9i/DBNEWID.php]

    Anand

  • Database alert is not triggered when the Oracle database monitor by mistake.

    Hello

    Database alert is not triggered when the monitor of the Oracle database by mistake. If we test the alert manually alert works correctly. Could someone let me know the solution for this.

    This isn't a question of PC or operating system. You should post your questions in the forums of Oracle database.

  • What is the name of the table that has the name of the custom in the Oracle database Section?

    What is the name of the table that has the name of the custom in the Oracle database Section?

    Thank you

    Nefertari

    The names of the custom Sections are stored in commonExtendedAttributeML, the extended attribute table.

  • How to store images in the oracle database and get back on a jsff page in ADF?

    Mr President.

    How to store images in the oracle database and get back on a jsff page in ADF?

    I have students and employees in my database and want to store their pictures against their ID.

    How to do this?

    Concerning

    Tender,

    You can check the links that explain this below.

    https://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-2/

    Johny tips: ADF: display image files from database as a popup in Application Web ADF

    See you soon

    AJ

Maybe you are looking for

  • My sim card has slipped the tray and into the phone and is locked how to remove

    Grandson bought a new iPhone and thought that he had to change sim cards.  He removed the sim card and tried to reinsert everything by putting the tray with the card in the phone, SIM slipped off the set and became stuck in the phone.  Any ideas how

  • How can I get more than 9 windows on the new tab page

    I want more than 9 because I have several favorite sites that I have forgotten.

  • Solenoid with labview interface

    Hi, I currently have a solenoid valve (NVZ110) with 24 VDC, "+" and "-" terminals) and I: CFP-DIO-550 CFP-AO-200 CFP-AO-210 PSC-HAVE-112 My question what module should use to open and close the tap? Also, I couldn't find a tutorial on how to create a

  • Arrow keys to scroll

    I always liked to use the arrows at the bottom right of the keyboard to scroll to the bottom of pages I read long documents. For some reason, this does not work in Firefox on my T520. Does anyone know of setting that I can change this?

  • HP Pavilion Sleekbook 14 TS: App Store won't open / work

    My app store has not worked for a long time. I clicked and nothing happens. All updates are in and which did not help. I search for a solution, but nothing has worked. All the other app work fine as before.