Use Apex to create 2nd database

I already have Oracle 10g and Apex working fine on my Windows XP box.
Now my user has altered their requirements causing me to need to create a 2nd "database" using same named tables as already exist in my 1st "database".
Can this be done? Am I using the correct terminology saying "database" rather than maybe "connection"?

I created a PHP system for them using their Oracle 6 database tables. They have now upgraded their environment to Oracle 7 with, I suspect, some alterations to their column names.
On my development machine I have a connection to s6s which is equavelent to their 1st version. I now want to create s7s containing the same tables as the s6s and carry on developing on that. I do not want to loose the s6s as the maintenance/support I have to do may well require this.
I hope that the above is a bit more clear.

Similar Messages

  • How to use MySQL to create a database

    I downloaded MySQL and opened the folder and saw a plethora of files. I'm lost and don't know where to start. I want to create a database. Any suggestions? I have dreamweaver cs5. My computer is a mac book pro OS10.6.8.

    To amplify osgood_'s excllent suggestions - MySQL is a database application that runs, typically, in a server environment. Full stop.
    This is not a simple "install the app and everything's good" type of program. Please do more research before attempting to install it. Also understand the security implications of running a database on a server (or even locally) and learn how to lock it down. Finally, to install and run MySQL locally, you better get really good with Terminal.app and learn how to launch MySQL and configure it from the command line.
    I personally use MAMP (Mac Apache MySQL and PHP - see http://www.mamp.info/) to do MySQL/PHP development and testing as it doesn't mess with the internals of my machine, keeps everything in a MAMP folder in my Applications folder, and it has a control panel for easy start/stop of Apache/MySQL services.
    Not trying to squash your dreams of running MySQL locally but you do need more "domain" knowledge before doing so.
    Hope this helps.

  • Using apex to create a news board application ?

    hi,dear all
    have you think of this before ?i am trying to do this now,I have built two applications,one for admin and the other is for public users.do you have any suggestions ? because I have met some questions during processing this application,for example, I am not sure how to store the news' contents,a table ? a page?or something else.what's more,i don't know how to display these news would be better.
    best regards
    hlee

    The news content should be stored in a column of type CLOB. In the admin application the news will be entered in an html editor field. Your public application will be, in its simplest form, one ApEx page where you have a pl/sql region that outputs the news using the htp package. You will pass an ID to the page via the URL, so that the right news post is shown. Be aware of the varchar size limit: you will have to write a loop and output your news content in chunks of 4000 characters. Additionally you can create a table to store images which can be uploaded in the admin app, where you show a report with a download link, which can be used as an image url in the news post.

  • Using Powershell to create Pervasive database

    In my quest to replace a bunch of old scripts and programs (blend of VB, bat files, manual intervention) to automate some processes, I'm trying to create a pervasive.sql database with Powershell. They currently use an old VB script to do this, and the code
    is as follows:
    Function CreatedB(strPath,strDDFPath,strdBName)
     Set mdtoDatabase = CreateObject("DTO.DtoDatabase.2")
     With mdtoDatabase
      mdtoDatabase.DataPath = strPath
      mdtoDatabase.DdfPath = strDDFPath
      mdtoDatabase.Name = strdBName
      mdtoDatabase.Flags = iFlags
     End With
     result = mdtoSession.Databases.Add(mdtoDatabase)
     If result > 0 Then
      msgbox "Error Adding DBN. Result: " & cstr(result)
      If cstr(result) = 7012 Then
      Else
       strDBMsg = strDBMsg & "NEED ATTENTION: Error adding DB " & strdBName & ". Result: " & cstr(result)
      End If
     End if
    End Function
    Seems pretty simple! However, I'm not sure how to, or if I can, get this ported to Powershell directly. Not sure that PS has the ability to work with DTO ? I could sure use some guidance on this one...I am open to other suggestions as well. I've been looking
    at possibly using ado.net, but that seems to connect to "existing" dbs, and I can't really see anything to actually create a new db.
    Thanks in advance!
    mpleaf

    JRV, by telling me it "was" possible, and giving me the above, I was able to use the get-member to figure out which aspects I needed, and I was actually able to do this! Guess I understood it a little better than I thought! Thanks for the nudge!
    $Path = 'E:\myPath'
    $DDFPath = 'E:\myPath'
    $dBName = 'myDb'
    $Flags = 0
    $TaskUser = 'MyUser'
    $TaskPass = 'MyPass'
    $mdtoSession = New-Object -ComObject DTO.DtoSession
    $connected = $mdtoSession.connect('localhost', $TaskUser, $TaskPass)
    if ($mdtoSession.connected)
        echo 'connected'
        $mdtoDatabase = New-Object -ComObject DTO.DtoDatabase
        $mdtoDatabase.DataPath = $Path
        $mdtoDatabase.DdfPath = $DDFPath
        $mdtoDatabase.Name = $dBName
        $mdtoDatabase.Flags = $Flags
        $mdtoSession.Databases.Add($mdtoDatabase)
        else
        echo 'no go'
    ...and voila! My db was created!
    mpleaf

  • Using APEX to create a navigation application using Oracle Maps/Google Maps

    Hi Guys,
    Does anyone know if there are any tutorials out there which would show me the basis to create a navigation application with Oracle Maps/Google Maps in APEX?
    I have found tutorials that show me how to get the map onto APEX and to view it but I cant find anything else that would give me a more in-depth tutorial
    Thanks in advance for your help
    -Mark

    Hi,
    I hope that this link might help
    http://www.oracle.com/technetwork/developer-tools/apex/integration-086636.html#GOOGLE
    Br,Jari

  • Create OS filesystem Directory Using Apex, SQL commands of SQL worshop

    I am using Apex 3.0, Oracle Database 10g and IE 6.5
    Code Here:
    Create or replace Directory 'Data_Dir' as 'C:\temp\'
    Error Message:
    Insufficient Priveleges
    This code runs fine when I access server remotely. Our projec team has no APex experience. our workspace administrator does not know how to grant appropriate privileges to my user accounts.
    Please provide us step by step help immediately on 'How to create OS Directory from APEX'.
    Thank you very much.

    Please provide us step by step help immediately on 'How to create OS Directory from APEX'.Please bear in mind that most people in this forum are doing it in their own time, without any financial gain from it. If you have an urgent support issue that is critical to your business and you want it answered immediately you should contact Oracle support, otherwise remember that you may need to wait some time for someone to answer your question here (especially considering it's the weekend).
    However, in answer to your question, yes your DBA will need to grant 'create directory' or 'create any directory' to the user you've specified. If you're saying it runs fine when you access the server remotely (I'm assuming you mean via SQLPlus etc), that probably suggests your DBA has granted the right via a role which won't work while connected in the APEX environment (you will need to explicitly grant the permission to the user).
    Hope this helps.

  • How to create a database using Java?

    Hi there..
    I'm a student who is currently studying IT and was asked to do a project based on database but create using Java.. since i'm a beginner..i was wondering whether is it possible to do that?
    and if it is possible.. can you kindly show me a sample of code on how to start the project...
    thank you
    yours sincerely,
    Shafini

    While duffymo is correct in regard to most major database products, it's my understanding (warning! wild-ass guess coming) that the Hypersonic DB is more "application-centric" and the dynamic creation of databases is part of its design. It's pure Java database software, and therefore is not appropriate for all database projects, in particular those that require extremely high-performance.
    See http://hsqldb.org/
    I've not used it yet (but soon though), and I can't really advise anyone about it.
    However, I'm wondering if you phrased you question in a way that is confusing us. To most of us in casual conversation, a "database" is both (1) a large organized collection of data and (2) the software that is used to organize and access it. However, the phrase "create a database" usually means creating a (1) database (a collection of data) using an already created (2) database software, such as Oracle, MySQL, DB2, HSQDB, etc., etc. If you'r question is, how do a create some new database software using Java, the answer is that this is a very very big and hard thing to do for the general case and probably not something you want to be doing.

  • How to create sql database using java frame or appelet?

    hi ! i am working on database project i want to create a database using java frame or applet where it asks user to select the location for database to be created , after user have specified the path then the programs creates the database, again i want that database to be read and write by another frame or applet but as user select the path how do i make the connectivity. i just have basic knowledge on java. please give me idea how can i process further.
    thanks a lot

    While duffymo is correct in regard to most major database products, it's my understanding (warning! wild-ass guess coming) that the Hypersonic DB is more "application-centric" and the dynamic creation of databases is part of its design. It's pure Java database software, and therefore is not appropriate for all database projects, in particular those that require extremely high-performance.
    See http://hsqldb.org/
    I've not used it yet (but soon though), and I can't really advise anyone about it.
    However, I'm wondering if you phrased you question in a way that is confusing us. To most of us in casual conversation, a "database" is both (1) a large organized collection of data and (2) the software that is used to organize and access it. However, the phrase "create a database" usually means creating a (1) database (a collection of data) using an already created (2) database software, such as Oracle, MySQL, DB2, HSQDB, etc., etc. If you'r question is, how do a create some new database software using Java, the answer is that this is a very very big and hard thing to do for the general case and probably not something you want to be doing.

  • Create two databases in one oracle home

    Hi All,
    I am new in oracle, using oracle standard edition 10g and some questions I want to ask.
    Is it possible to create 2 different databases under same oracle home? For example, one database for online transaction named orcl_online, one database for reporting services named orcl_report.
    If it is ok, that means 2 instance exist for each database, then how to use sqlplus to connect to orcl_online only ?
    Thanks.

    Not 2, you can create more number of databases in an Oracle Server but of course depend on the h/w configurations.
    Use dbca to create the database orcl_online and then again create orcl_online.
    If u trying to connect to particular DB through Command line, set the ORACLE_SID.
    In windows set ORACLE_SID= orcl_online then use sqlplus
    In unix/linux etc export ORACLE_SID=’ orcl_online’ then use sqlplus
    If using sqlplus GUI specify the host string which is the database name probably.

  • ORA-01034 when trying to create a database

    I successfully installed Oracle 8.1.7 on Solaris 8, but when I tried creating a database (by executing sql<SID>.sh after I ran "dbassist"), this error appeared:
    ORA-01034: Oracle not available.
    I could not use svrmgrl to do a startup because there is NO database.
    What services have to run before I can create a database?
    Thank you.
    null

    I chose "custom installation" and not to create a database during installation. There was no error when I installed the Oracle software and I modified the /etc/system (shmmax, shmmin, etc.) according to the Oracle documentation. After that, I used "dbassist" to create a database. Then the "ORA-01034: Oracle not available" appeared.
    I also tried to install Oracle with "Typical" option that is suppose to create the initial database for me. It also failed. The same error appeared when the 'Database Configuration Tools' were trying to create the database files.

  • Method to Use in Creating a Database--need assistance

    I'm new to Oracle Apex and would like to create a database. Let me tell you the scenario. Iim capturing 4 types of informatoin initially from focus groups, survey results, blog post, and drop off surveys. I would like to input the informtion gathered from each session in each table ,some tables with common fields. Then I would like to maintain one master table which would have all fields. At some point, i would like to reference the common fields in each database. What's the best way to approach this? Maybe i do not need multiple tables--maybe I can have one large application and form a report to pull the information. However, I think the recommendation was to make 4 separate tables--please advise

    user13149997 wrote:
    I'm new to Oracle Apex and would like to create a database. Let me tell you the scenario. Iim capturing 4 types of informatoin initially from focus groups, survey results, blog post, and drop off surveys. I would like to input the informtion gathered from each session in each table ,some tables with common fields. Then I would like to maintain one master table which would have all fields. At some point, i would like to reference the common fields in each database. What's the best way to approach this? Maybe i do not need multiple tables--maybe I can have one large application and form a report to pull the information. However, I think the recommendation was to make 4 separate tables--please adviseI'd advise you to google "data normalization" and get familiar with the concept of 'normalizing' your data to "third normal form" (aka TNF or 3NF). A proper analysis of your data, and how the different data elements will dictate how many tables, what they contain, and how they relate. I can almost guarantee trying to use a single table is a mistake. That's why we call them relational databases, not just data dumps.

  • How to create an database account authentication scheme in apex

    Dear
    I have an apex installation (embeded) on oracle 11g.
    I want to create a database account authentication scheme in apex. I have seen the page with different tab like name,subsription,source,session not valid, login processing, logout URL,session cookie attributes and comments.
    I want to know what are the things to be specifed on these tabs and the effects. I have gone thru the documentation 'Application Builder User’s Guide Release 4.1' , but the functionalities of these tabs are not mentioned.
    Please help.
    Dennis
    Edited by: Dennis John on Feb 28, 2012 10:57 PM

    Thanks to dear Jit
    I am new to apex.
    I have gone thru that documents but I couldn't find any detailed documentation about the database account authentication scheme configuration
    The database account authentication scheme creation interface will show tabs like name,subsription,source,session not valid, login processing, logout URL,session cookie attributes and comments.
    I want to know what are the things to be specifed on these tabs and how it will reflect in the login. The specified documentation is not giving any detail about the above mentioned tabs of authentication scheme creation iwizard.
    And also I want to know how the applciation user will be mapped to the database account?
    As per my understanding a database user (for each run time user) is required for to authenticate the apex run time login other than the applciation schema user (holds the objects of applicaiton)
    run time user means - end user who uses the applcaition, not the developer.
    Please help.
    Dennis

  • Uploading csv file into database using apex

    Dear all
    I am using apex 4 and oracle express 10g, i need to upload .csv file into the database for one of my appls, i have referred discussion forum for solutions, i found also, but some how its not working for me.
    below mentioned is error and the code
    ERROR:
    ORA-06550: line 38, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 38, column 8: PL/SQL: Statement ignored ORA-06550: line 39, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 39, column 8: PL/SQL: Statement ignored ORA-06550: line 40, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 40, column 8: PL/SQL: Statement ignored ORA-06550: line 41, column 8: PLS-00221: 'V_DATA_ARRAY' is not a proc
    Error
    OK
    CODE:
    DECLARE
    v_blob_data BLOB;
    v_blob_len NUMBER;
    v_position NUMBER;
    v_raw_chunk RAW(10000);
    v_char CHAR(1);
    c_chunk_len number := 1;
    v_line VARCHAR2 (32767) := NULL;
    v_data_array wwv_flow_global.vc_arr2;
    BEGIN
    -- Read data from wwv_flow_files
    select blob_content into v_blob_data
    from wwv_flow_files where filename = 'DDNEW.csv';
    v_blob_len := dbms_lob.getlength(v_blob_data);
    v_position := 1;
    -- Read and convert binary to char
    WHILE ( v_position <= v_blob_len ) LOOP
    v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
    v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk)));
    v_line := v_line || v_char;
    v_position := v_position + c_chunk_len;
    -- When a whole line is retrieved
    IF v_char = CHR(10) THEN
    -- Convert comma to : to use wwv_flow_utilities
    v_line := REPLACE (v_line, ',', ':');
    -- Convert each column separated by : into array of data
    v_data_array := wwv_flow_utilities.string_to_table (v_line);
    -- Insert data into target table
    EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
    USING
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4);
    v_data_array(5);
    v_data_array(6);
    v_data_array(7);
    v_data_array(8);
    v_data_array(9);
    v_data_array(10);
    v_data_array(11);
    -- Clear out
    v_line := NULL;
    END IF;
    END LOOP;
    END;
    what i understand from this is system does not identify v_data_array as array for some reasons, please help me.
    initially system was giving error for hex_to_decimal, but i managed to get this function on discussion forum and now it seems to be ok. but v_data_array problem is still there.
    thanks in advance
    regards
    Uday

    Hi,
    Mistakes in your sample I did correct
    Problem 1
    select blob_content into v_blob_data
    from wwv_flow_files where filename = 'DDNEW.csv'; to
    select blob_content into v_blob_data
    from wwv_flow_files where name = :P1_FILE;Problem 2
    EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
    USING
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4);
    v_data_array(5);
    v_data_array(6);
    v_data_array(7);
    v_data_array(8);
    v_data_array(9);
    v_data_array(10);
    v_data_array(11);  to
    EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
    USING
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4),
    v_data_array(5),
    v_data_array(6),
    v_data_array(7),
    v_data_array(8),
    v_data_array(9),
    v_data_array(10),
    v_data_array(11);  And I did create missing table
    CREATE TABLE TABLE_X
        v1  VARCHAR2(255),
        v2  VARCHAR2(255),
        v3  VARCHAR2(255),
        v4  VARCHAR2(255),
        v5  VARCHAR2(255),
        v6  VARCHAR2(255),
        v7  VARCHAR2(255),
        v8  VARCHAR2(255),
        v9  VARCHAR2(255),
        v10 VARCHAR2(255),
        v11 VARCHAR2(255)
      );Regards,
    Jari
    Edited by: jarola on Nov 19, 2010 3:03 PM

  • Creating a Database in Apex

    Hello,
    I'm new to the forum and new to Apex, but it's been requested of me to create a database using Application Express.
    I already designed a database in Access 2007, but am having a lot of difficulty in migrating that schema to Application Express.
    I'm looking for solid resources that can take me step by step through the process of creating a database, but all the videos I've seen online aren't specifically for database creation.
    Can anyone assist?
    Thanks,
    Derek

    Another link..
    MS Access Migration&lt;/title&gt;&lt;meta name=&quot;Title&quot; content=&quot;MS Access Migration&quot;&gt;&lt;meta nam…
    Regards,
    Hari

  • Changing passwords using APEX and Database Credentials

    We are developing an application that uses database credentials. We can login very easily. Is there a simple way to create a page so that the users can change their own passwords? I understand that the users will in effect be issuing an ALTER USER statement from within APEX. However, we get an "Insufficient Privileges" error message when issuing the command from APEX. So, whose credentials is APEX using?

    J,
    So, whose credentials is APEX using?
    There are no credentials involved here. All code in your PL/SQL application is parsed as the schema that owns the application. When you implement your PL/SQL application using Application Express, that schema is the "Owner" attribute, or parsing schema.
    See Re: ORACLE Password Change using APEX FORM
    Scott

Maybe you are looking for