SQL database creation

I'm looking for a facility while designing tables with SQL. Like in DB2 can we add database members in SQL and can we override these tables before application is evoked?
Thanks in advance.

Yes, you can add users to the database mapped to the logins. But what do you mean "override" tables? Sturcture? Data> Can you be more specific?
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • Error in sql database creation

    how to solve the problem "create database  permission is denied in database "master"" in sql database creation

    >>how to solve the problem "create database  permission is denied in database "master"" in sql database creation
    Getting the permissions required to create database is the solution:)
    http://dba.stackexchange.com/questions/42299/create-database-permission-denied-in-database-master
    from the link
    You need to execute this T-SQL command using an account that does have administrative rights, such as sa:
    USE master;
    EXECUTE sp_addsrvrolemember @loginame = N'YourAppUserLogin', @rolename = N'dbcreator';
    Replace YourAppUserLogin with
    the login the application user uses to connect to the database.
    Satheesh
    My Blog | How to ask questions in technical forum

  • SQL Database creation failed in resource group Default-SQL-NorthEurope

    Hi
    I am getting the following error, when I try to create a database in Azure(https://portal.azure.com/)
    OperationName: CreateDatabase
    Status: Failed
    EventTimestamp: Wed Dec 03 2014 16:44:53 GMT+0100
    ResourceUri: /subscriptions/[SubscriptionId]/resourcegroups/Default-SQL-NorthEurope/providers/Microsoft.Sql/servers/img0xvixih/databases/[DatabaseName]
    SubscriptionId: XX
    EventSubmissionTimestamp: Wed Dec 03 2014 16:51:00 GMT+0100
    OperationId: 3972a8b9-046e-4a3d-ae78-6bed77ad2362
    SubStatus: N/A
    CorrelationId: 3972a8b9-046e-4a3d-ae78-6bed77ad2362
    Description: Failed to create database [DatabaseName], SqlErrorCode: 40827 by: [email protected]
    Level: Informational
    ResourceGroup: Default-SQL-NorthEurope
    ResourceProvider: Microsoft.Sql
    EventSource: Microsoft.Sql
    Properties: ServerName:img0xvixih
    DatabaseName:[DatabaseName]
    ErrorCode:40827
    ClientIP:157.**.***.250
    Description:Failed to create database [DatabaseName], SqlErrorCode: 40827
    Note :
    I have a: pay as you go plan
    Thanks in advance.

    Hi Girish
    I am getting the same error:
    OperationName: CreateDatabase
    Status: Failed
    EventTimestamp: 2014-12-03T15:44:53.655Z
    ResourceUri: /subscriptions/[SubscriptionId]/resourcegroups/Default-SQL-NorthEurope/providers/Microsoft.Sql/servers/img0xvixih/databases/[DatabaseName]
    SubscriptionId: XX
    EventSubmissionTimestamp: 2014-12-03T15:51:00.486Z
    OperationId: 3972a8b9-046e-4a3d-ae78-6bed77ad2362
    SubStatus: N/A
    CorrelationId: 3972a8b9-046e-4a3d-ae78-6bed77ad2362
    Description: Failed to create database [DatabaseName], SqlErrorCode: 40827 by: [email protected]
    Level: Informational
    ResourceGroup: Default-SQL-NorthEurope
    ResourceProvider: Microsoft.Sql
    EventSource: Microsoft.Sql
    Properties: ServerName:img0xvixih
    DatabaseName:[DatabaseName]
    ErrorCode:40827
    ClientIP: 157.**.***.250
    Description: Failed to create database [DatabaseName], SqlErrorCode: 40827
    hmmm, maby next stop is amazon(aws)!

  • SQL Database Creation Error

    Hi
    Just signed up to MS Azure account on the free trial, and I am trying to create a new database (I've tried this via Quick Create and Custom Create) but I just get a message:
    Could not submit the request to create database 'MattTest'.
    Any reason as to why this doesn't work? Thanks.

    Hello Matt,
    Can you please share in which region are you trying to create the database. Also are you trying to create it in a V12 server?
    Thanks,
    Jan

  • Generate script from SQL for database creation

    Hi,
    as we have DBMS_METADATA to get scripts for constraints , is there any way by which we can get scripts used for database creation from existing databases
    Thanks
    kedar

    Thanks for the ODB tool. I'm trying to connect with SYS but ODB tool replied :
    Unable to make connection : connection to sys should be sysdba or sysoper
    How do I tell it to connect "as sysdba" ? I tried putting that in "User Name" field but it didn't work.
    Also, when I create a new connection and try to save it, it will prompt me to :
    Setup user preferences for this instance
    and then popped up the window for "Set Options and Preferences"
    My question is, after I saved this connection, how do I go back into this window to edit it ? I don't see any button for it.
    Thanks again

  • Can't connect to SQL Database using new login

    I can connect to Azure SQL Database using the admin ID created when I set up the Azure account.  Now I want to set up a different login that has only regular read/write privileges.  I have followed the instructions on several web posts, to create
    a login at the server level, then create a user at the database level from the login.  When I try to connect, though, the connection fails.  I get an error message, and a GUID that I am supposed to supply to MS tech support, except that all I have
    is a standard Azure subscription, which does not include tech support.
    Here is what I have done so far:
    Logging in to the server with the admin account with SQL Mgmt Studio, I go to the master database on my Azure server, and create the login:
    CREATE LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
    This appears to work (password supplied is a "strong" password), or at least it doesn't show any error response.
    Then, connecting to the production database in Azure, I set up a user and set permissions as follow:
    CREATE USER clouduser1 FROM LOGIN clouduser@gxw8x04nlb;
    EXEC sp_addrolemember 'db_datareader', 'clouduser1'
    EXEC sp_addrolemember 'db_datawriter', 'clouduser1'
    When I attempt to connect to Azure using the new login, however, I get an error message (from SQL Mgmt Studio as well as from MS Access).  I am using the SQL Server Native Client 10.0.
    The message is:
    Connection failed:
    SQLState '28000'
    SQL Server Error 18456
    [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'clouduser'.
    Connection failed:
    SQLState: '01000'
    SQL Server Error: 40608
    [Microsoft][SQL Server Native Client 10.0][SQL Server]This session has been assigned a tracing ID of
    '271851d5-8e94-497c-a332-d9d40682bb7a'.  Provide this tracing ID to customer support when you need assistance.
    Is there some missing step I need to do, to permit the login to see the database?  I have looked for such in the various discussions about connection problems, but have not been able to find such a thing.   Or extend more permissions to the new
    user? Or specify a default user ID for a given login ?  (as they do not have the same names, in the examples I have seen).  I tried making the user ID the same as the login (w/o the server name), but that didn't seem to help, either.
    I have done numerous web searches, and tried about every variation of login or user ID, password, etc. that I can think of, and all of them encounter the same error.  It's got to be something very simple - clearly Azure supports more than one login
    per database.  But's that's all I have at the moment.  That login connects just fine, but others won't, using the same PC, middleware, IP address, etc.
    Any help would be much appreciated -
    Thanks,
         Doug

    Olaf -
    I noticed that, but all of the examples I have seen have Users named slightly differently from the Logins.  I did try logging in with the Login name instead.  No good.  I tried making the Login and the User name the same (clouduser).  Also
    no good - same symptoms.
    I think the problem is that the initial creation of the Login needs to be done WITHOUT the server name on the end.  
    Logged in to the master DB, I tried:  Create LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
    That didn't give me an error message, but I think it created a LOGIN of 'clouduser@gxw8x04nlb'.  When
    referenced from the outside world, I would need to specify 'clouduser@gxw8x04nlb@gxw8x04nlb'.
    I tried deleting the logins, and then creating the login 'clouduser' in the Master DB.  Then in
    the application DB, I created User clouduser from LOGIN clouduser, and then assigned a role.  That seems to work!
    In my connection string, File DSN, etc. I still need to supply the login as 'clouduser@gxw8x04nlb'.
     But when I am logged in to the server, and working in the Master DB or the application DB, I just refer to the Login as 'clouduser'.  
    Seems a little more complicated than it really should be, but at least I now have something that works.
    Doug
    Doug Hudson

  • While Installation of 11g database creation time error ORA-28056: Writing audit records to Windows Event Log failed Error

    Hi Friends,
    OS = Windows XP 3
    Database = Oracle 11g R2 32 bit
    Processor= intel p4 2.86 Ghz
    Ram = 2 gb
    Virtual memory = 4gb
    I was able to install the oracle 11g successfully, but during installation at the time of database creation I got the following error many times and I ignored it many times... but at 55% finally My installation was hanged nothing was happening after it..... 
    ORA-28056: Writing audit records to Windows Event Log failed Error  and at 55% my Installation got hung,,,, I end the installation and tried to create the database afterward by DBCA but same thing happened....
    Please some one help me out, as i need to install on the same machine .....
    Thanks and Regards

    AAP wrote:
    Thanks Now I am able to Create a database , but with one error,
    When I created a database using DBCA, at the last stage I got this error,
    Database Configuration Assistant : Warning
    Enterprise Manager Configuration Failed due to the Following error Listener is not up or database service is not registered with it.  Start the listener & Registered database service & run EM Configuration Assistant again....
    But when I checked the listener was up.....
    Now what was the problem,  I am able to connect and work through sqlplus,
    But  I didnt got the link of EM and when try to create a new connection in sql developer it is giving error ( Status : failure - Test Failed the Network Adapter could not establish the connection )
    Thanks & Regards
    Creation of the dbcontrol requires a connection via the listener.  When configuring the dbcontrol as part of database creation, it appears that the dbcontrol creation step runs before the dynamic registration of the databsase with the listener is complete.  Now that the database itself is completed and enough time (really, just a minute or two) has passed to allow the instance to register, use dbca or emca to create the dbcontrol.
    Are you able to get a sqlplus connection via the listener (sqlplus scott/tiger@orcl)?  That needs to be the first order of business.

  • Manual database creation

    Hi all,
    I need to create a small database manually.
    What are the mandatory fields for DB creation.
    What are the steps to be followed?
    If anyone have the script please send me.
    Thanks in advance.
    regards,
    prem

    hi prem..
    you have to create script for database creation..
    no problem if ur on 9i.
    let do below step..
    step 1. open ur dbca and create script for ur database.
    step 2. create folder
    bdump, udump, cdump ---- d:\oracle\ora90\admin\3 folder 1.bdump, 2. udump, 3.cdump
    folder name some ur db_name -----d:\oracle\oradata\"folder name must be some ur db_name"
    step 3. go cmd prompt
    start>run>command [enter]
    cmd>set oracle_sid=dbname
    cmd> create password file..... ( see mentioned link in previous post)
    cmd>create and start services ( see mentioned link in prev. post)
    cmd>sqlplus/nolog
    sql>conn sys as sysdba
    connected
    sql> run all database creation scripts.
    script generate in
    d:\oracle\admin\script\>>>>>>.scritps
    Note.>> Drive may be C:,D: whatever according ur setting.
    hope this helps
    Taj.
    Message was edited by:
    user52

  • Oracle 9i installation hanging in "Clone Database Creation in Process"

    Hi all,
    I have been struggling in installing the 9i in my laptop.
    Here is my setup,
    OS: Windows Server 2003 Enterprise Edition SP2 in VMWare
    Database: Oracle 9i 9.2.0.1.0
    When it automatically comes to "Database Configuration Assistant", there are 4 steps.
    Copying Database files
    Initializing Database
    Creating and starting Oracle Instance
    Completing database creation
    The 1st 3 steps has been completed and the installation just hangs at the last step when the completion rate is 88%.
    Anyone got problem like this ?
    Here are the details I have so far for the DBCA during installation process,
    Listener Control complete.
    Listener start failed. Listener may already be running.
    Listener configuration complete.
    Default local naming configuration complete.
    Oracle Net Services configuration successful. The exit code is 0
    Since I am completely new to installing DB, please help me to get rid of this frustration.
    Thanks !
    Regards,
    Chris

    Capacity Planner 9.2.0.1.0
              Enterprise Manager Events 9.2.0.1.0
              Enterprise Manager Base Classes 9.2.0.1.0
              Required Support Files 9.2.0.1.0
              Enterprise Manager Installation Prerequisite Checks 9.2.0.1.0
              Utilities Common Files 9.2.0.1.0
              Enterprise Manager Quick Tours 9.2.0.1.0
              Oracle Display Fonts 9.0.2.0.0
              regexp 2.0.20.0.0
              Oracle OLAP Worksheet 9.2.0.1.0
              Oracle OLAP API 9.2.0.1.0
              Oracle Developer Server Forms Manager 9.2.0.1.0
              Oracle Intelligent Agent Base Component Files 9.2.0.1.0
              Oracle Internet Directory Client Common Files 9.2.0.1.0
              Sun JDK 1.3.1.0.1a
              Oracle Directory Manager 9.2.0.1.0
              Visigenics ORB 3.4.0.0.0
              Assistant Common Files 9.2.0.1.0
              Enterprise Manager Paging and OMS Common Files 9.2.0.1.0
              XML Parser for C 9.2.0.1.0
              Oracle Net Configuration Assistant 9.2.0.1.0
              Character Set Migration Utility 9.2.0.1.0
              Enterprise Manage Website Translated Files 9.2.0.1.0
              Oracle Net Manager 9.2.0.1.0
              Oracle Net 9.2.0.1.0
              Oracle Perl Interpreter 5.00503.0.0.0c
              Apache Web Server files 1.3.22.0.0a
              Oracle JDBC/OCI Driver for JDK 1.4 9.2.0.1.0
              Database Configuration Assistant 9.2.0.1.0
              Oracle JDBC/OCI Driver for JDK 1.2 9.2.0.1.0
              Oracle INTYPE File Assistant 9.2.0.1.0
              SQLJ Runtime 9.2.0.1.0
              Oracle JDBC/OCI Interfaces 9.2.0.1.0
              Advanced Queueing (AQ) API 9.2.0.1.0
              Oracle Caching Service for Java 2.1.0.0.0a
              Recovery Manager 9.2.0.1.0
              JSDK 2.0.0.0.0d
              Apache JServ 1.1.0.0.0g
              Oracle interMedia Java Client 9.2.0.1.0
              Oracle Java Layout Engine 2.0.1.0.0
              Oracle Administration Assistant for Windows NT 9.2.0.1.0
              Oracle XML SQL Utility 9.2.0.1.0
              SQLJ Translator 9.2.0.1.0
              Enterprise Login Assistant 9.2.0.1.0
              Oracle Services For Microsoft Transaction Server 9.2.0.1.0
              Enterprise Manager Paging Server 9.2.0.1.0
              Oracle Java Tools 9.2.0.1.0
              Oracle ODBC Driver 9.2.0.1.0
              Authentication and Encryption 9.2.0.1.0
              Oracle Wallet Manager 9.2.0.1.0
              Oracle Database User Interface 2.2.11.0.0
              Oracle SNMP Agent 9.2.0.1.0
              Oracle Provider for OLE DB 9.2.0.1.0
              Oracle Objects for OLE 9.2.0.4.4
              Oracle C++ Call Interface 9.2.0.1.0
              Oracle OLAP Cube Viewer 9.2.0.1.0
              Oracle OLAP CWM Lite 9.2.0.1.0
              Object Type Translator 9.2.0.1.0
              SQL*Plus 9.2.0.1.0
              Oracle Call Interface (OCI) 9.2.0.1.0
              SQL*Loader 9.2.0.1.0
              Secure Socket Layer 9.2.0.1.0
              Oracle Internet Directory Client 9.2.0.1.0
              Oracle Net Listener 9.2.0.1.0
              Advanced Replication 9.2.0.1.0
              Oracle Complete DSS Starter Database 9.2.0.1.0
              Oracle Complete OLTP Starter Database 9.2.0.1.0
              Oracle Starter Database 9.2.0.1.0
              Oracle Message Gateway Common Files 9.2.0.1.0
              Oracle Common Schema Demos 9.2.0.1.0
              Change Management Common Files 9.2.0.1.0
              Oracle UIX 2.0.20.0.0
              Oracle Help for the Web 1.0.7.0.0
              XML Class Generator for C++ 9.2.0.1.0
              XML Parser for C++ 9.2.0.1.0
              XML Parser for Oracle JVM 9.2.0.1.0
              XML Transx 9.2.0.1.0
              XML Transviewer Beans 9.2.0.1.0
              XML Class Generator for Java 9.2.0.1.0
              XSQL Servlet 9.2.0.1.0
              XML Parser for PL/SQL 9.2.0.1.0
              Oracle SQLJ 9.2.0.1.0
              Enterprise Manager Common Files 9.2.0.1.0
              Common Files For Generic Connectivity Using OLEDB 9.2.0.1.0
              Oracle SOAP Client 2.0.0.0.0a
              Oracle Workflow Manager 9.2.0.1.0
              Oracle Net Integration 9.2.0.1.0
              Oracle XML Runtime Components 9.2.0.1.0
              Enterprise Manager Database Applications 9.2.0.1.0
              Oracle SOAP Server 2.0.0.0.0a
              Oracle Database Demos 9.2.0.1.0
              Oracle Ultra Search Common Files 9.2.0.1.0
              Enterprise Manager Console 9.2.0.1.0
              Enterprise Manager Integrated Applications 9.2.0.1.0
              Enterprise Manager Client 9.2.0.1.0
              Database Workspace Manager 9.2.0.1.0
              Oracle interMedia Java Advanced Imaging 9.2.0.1.0
              Oracle interMedia Client Compatibility Files 9.2.0.1.0
              Oracle interMedia Java Media Framework Client 9.2.0.1.0
              Oracle interMedia Client Demos 9.2.0.1.0
              Oracle interMedia Web Client 9.2.0.1.0
              BC4J Runtime for Database 9.0.2.692.1
              Oracle Change Management Pack 9.2.0.1.0
              Oracle interMedia Annotator 9.2.0.1.0
              Data Management Services Common Files 9.2.0.1.0
              Oracle interMedia Common Files 9.2.0.1.0
              Oracle interMedia Image 9.2.0.1.0
              Oracle interMedia Audio 9.2.0.1.0
              Oracle interMedia Video 9.2.0.1.0
              Database Upgrade Assistant 9.2.0.1.0
              Oracle Intelligent Agent Config Tool 9.2.0.1.0
              Oracle Intelligent Agent 9.2.0.1.0
              PL/SQL Embedded Gateway 9.2.0.1.0
              Oracle HTTP Server Extensions 9.2.0.1.0
              Oracle eBusiness Management Extensions 9.2.0.1.0
              Oracle EMD Agent Extensions 9.2.0.1.0
              Oracle interMedia Client Option 9.2.0.1.0
              Oracle SOAP for JServ 2.0.0.0.0a
              MIcrosoft SQLServer(TM) Extensions 9.2.0.1.0
              Oracle Management Pack for Oracle Applications 9.2.0.1.0
              Oracle Windows Interfaces 9.2.0.1.0
              Export/Import 9.2.0.1.0
              Apache Configuration for Oracle XML Developer's Kit 9.2.0.1.0
              Oracle Tuning Pack 9.2.0.1.0
              Oracle Forms Extensions 9.2.0.1.0
              Oracle XML Developer's Kit 9.2.0.1.0
              Oracle Java Server Pages 1.1.3.1.0
              Oracle Diagnostics Pack 9.2.0.1.0
              Oracle Ultra Search Middle-Tier 9.2.0.1.0
              Oracle Dynamic Services Server 9.2.0.1.0
              Oracle Mod PL/SQL Gateway 3.0.9.8.3b
              Apache Configuration for Oracle Java Server Pages 1.1.2.3.0
              Oracle Text 9.2.0.1.0
              Generic Connectivity Common Files 9.2.0.1.0
              New Database ID 9.2.0.1.0
              Database SQL Scripts 9.2.0.1.0
              Generic Connectivity Using OLEDB - SQL 9.2.0.1.0
              Oracle HTTP Server 9.2.0.1.0
              XML 9.2.0.1.0
              Generic Connectivity Using OLEDB - FS 9.2.0.1.0
              iSQL*Plus 9.2.0.1.0
              Generic Connectivity Using ODBC 9.2.0.1.0
              Enterprise Manager Webserver Integration 9.2.0.1.0
              Reporting Framework 9.2.0.1.0
              Oracle interMedia Locator 9.2.0.1.0
              Oracle Management Server 9.2.0.1.0
              Oracle Ultra Search Server 9.2.0.1.0
              Oracle interMedia 9.2.0.1.0
              Oracle Trace 9.2.0.1.0
              Oracle9i Syndication Server 9.2.0.1.0
              Enterprise Manager Web Site 9.2.0.1.0
              Oracle Applications Extensions 9.2.0.1.0
              Oracle Intelligent Agent Extensions 9.2.0.1.0
              Oracle Programmer 9.2.0.1.0
              Migration Utility 9.2.0.1.0
              Oracle Enterprise Manager Products 9.2.0.1.0
              Oracle9i Development Kit 9.2.0.1.0
              Oracle Advanced Security 9.2.0.1.0
              Oracle JVM 9.2.0.1.0
              Database Verify Utility 9.2.0.1.0
              PL/SQL 9.2.0.1.0
              Oracle Database Utilities 9.2.0.1.0
              Oracle9i 9.2.0.1.0
              Oracle Net Services 9.2.0.1.0
              Oracle COM Automation Feature 9.2.0.1.0
              Oracle Data Mining 9.2.0.1.0
              Oracle OLAP 9.2.0.1.0
              Oracle Spatial 9.2.0.1.0
              Oracle Partitioning 9.2.0.1.0
              Enterprise Edition Options 9.2.0.1.0
              Oracle9i Database 9.2.0.1.0
    Starting to execute optional autolaunch configuration tools
    Launched configuration tool Oracle Net Configuration Assistant
    Command which is being spawned is C:\Program Files\Oracle\jre\1.1.8\bin/jrew.exe -Duser.dir=C:\oracle\ora92\network\jlib -classpath ";C:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;C:\oracle\ora92\jlib\ewt3.jar;C:\oracle\ora92\jlib\ewtcompat-3_3_15.jar;C:\oracle\ora92\network\jlib\NetCA.jar;C:\oracle\ora92\network\jlib\netcam.jar;C:\oracle\ora92\jlib\netcfg.jar;C:\oracle\ora92\jlib\help3.jar;C:\oracle\ora92\jlib\oracle_ice5.jar;C:\oracle\ora92\jlib\share.jar;C:\oracle\ora92\jlib\swingall-1_1_1.jar;C:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;C:\oracle\ora92\jlib\srvm.jar;C:\oracle\ora92\network\tools" oracle.net.ca.NetCA /orahome C:\oracle\ora92 /orahnam OraHome92 /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp,nmp,tcps /cfg local /authadp NO_VALUE /nodeinfo NO_VALUE /responseFile C:\oracle\ora92\network\install\netca_typ.rsp
    Configuration tool Oracle Net Configuration Assistant succeeded
    Result code for launching of configuration tool is 0
    Launched configuration tool Oracle Database Configuration Assistant
    Command which is being spawned is C:\Program Files\Oracle\jre\1.1.8\bin/jrew.exe -DORACLE_HOME="C:\oracle\ora92" -DJDBC_PROTOCOL="thin" -classpath ";C:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;C:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;C:\oracle\ora92\jlib\ewt3.jar;C:\oracle\ora92\jlib\kodiak.jar;C:\oracle\ora92\jlib\ewtcompat-3_3_15.jar;C:\oracle\ora92\lib\xmlparserv2.jar;C:\oracle\ora92\jdbc\lib\classes111.zip;C:\oracle\ora92\classes;C:\oracle\ora92\jlib\gss-1-1.zip;C:\oracle\ora92\jlib\oembase-9_2_0.jar;C:\oracle\ora92\jlib\srvm.jar;C:\oracle\ora92\assistants\jlib\assistantsCommon.jar;C:\oracle\ora92\jlib\share.jar;C:\oracle\ora92\jlib\swingall-1_1_1.jar;C:\oracle\ora92\assistants\dbca\jlib\dbca.jar;C:\oracle\ora92\jlib\help3.jar;C:\oracle\ora92\jlib\oracle_ice5.jar;C:\oracle\ora92\jlib\netcfg.jar;C:\oracle\ora92\lib\vbjorb.jar;C:\oracle\ora92\lib\vbjtools.jar;C:\oracle\ora92\lib\vbjapp.jar;" oracle.sysman.assistants.dbca.Dbca -progress_only -createDatabase -templateName General_Purpose.dbc -gdbName orcl -sid orcl -datafileJarLocation C:\oracle\ora92\assistants\dbca\templates -datafileDestination C:\oracle\oradata -responseFile NO_VALUE -characterset WE8MSWIN1252 -passwordDialog true Protected value, not to be logged

  • How to create a setup for window form application including the related sql database?

    i have created a simple window form application project that have only 2 form..
    1st one for login in which it'll check the userid n password from database.if both are correct then it will go to 2nd form.
    now i want this project to run in another computer.
    i created a setup file but its showing some error regarding the database instances connection..
    so if anyone can tell me in details how to create the setup file then it'll b a great help..
    thanx in advance..

    Hi,
    Consider the above scenario,I suggest you to use the SQL Server Compact+ ClickOnce Deployment, A Compact SQL database is a file that can be bundled with your application installation. Below is a link guiding you through the creation process of a SQL Compact
    database.
    http://technet.microsoft.com/en-us/library/ms173009.aspx
    The following link discusses setting up the necessary dependencies and prerequisites for SQL Server Compact. (Note, you will need to scroll to the section entitled Private File–Based Deployment.)
    http://msdn.microsoft.com/en-us/library/aa983326(v=VS.100).aspx
    A ClickOnce Deployment can help you publish your application attach compact SQL database into client machine.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Database creation in oracle 9i

    can any one tell me step of database creation in oracle 9i
    i try many times from 2 days through script because my DBCA is not open
    when i click it. DBCA created orcl during instalation but now
    it is not running. will i have to install it ?
    1)i add db_name=mukesh below db_name=orcl and run script but errors
    2)i crete initm.ora by copy init.ora and change db_name=orcl by db_name=mukesh
    in initm.ora but errors
    1)when i use init.ora without adding db_name=mukesh
    i also change undo_management by AUTO to manual i get
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile=D:\oracle\admin\orcl\pfile\init.ora nomount
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    SQL> create database mukesh
    2 datafile 'D:\oracle\oradata\mukesh\system01.dbf' size 325m
    3 logfile
    4 group 1 ('D:\oracle\oradata\mukesh\redo01.log') size 100m,
    5 group 2 ('D:\oracle\oradata\mukesh\redo02.log') size 100m,
    6 group 3 ('D:\oracle\oradata\mukesh\redo03.log') size 100m;
    create database mukesh
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-01504: database name 'mukesh' does not match parameter db_name 'orcl'
    after that i add db_name=mukesh below db_name=orcl
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup pfile=D:\oracle\admin\orcl\pfile\init.ora nomount
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    SQL> create database mukesh
    2 datafile 'D:\oracle\oradata\mukesh\system01.dbf' size 325m
    3 logfile
    4 group 1 ('D:\oracle\oradata\mukesh\redo01.log') size 100m,
    5 group 2 ('D:\oracle\oradata\mukesh\redo02.log') size 100m,
    6 group 3 ('D:\oracle\oradata\mukesh\redo03.log') size 100m;
    create database mukesh
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00200: controlfile could not be created
    ORA-00202: controlfile: 'D:\oracle\oradata\orcl\CONTROL01.CTL'
    ORA-27038: skgfrcre: file exists
    OSD-04010: <create> option specified, file already exists

    Hi,
    If you getting a problem with DBCA go for manually process:-
    I had listed steps which I follow
    Step 1: Decide on Your Instance's System Identifier (SID)
    Step 2: Create the Initialization Parameter File
    Note:- Name the copied init.ora file init<SID>.ora because this is the default naming convention that the Oracle server looks for when it tries to start up the instance ORACLE_HOME/dbs directory (exists over the prefered path)
    Edit this file's parameters so that your database and your instance will run effectively on your system.
    DB_NAME Must be set to a text string of eight characters or less. During database creation, the value assigned to DB_NAME is recorded in the database's datafiles, redo log files, and control files. If, when you attempt to start the database instance, the value of DB_NAME as recorded in the initialization parameter file and the database name in the control files are not the same, the database will not start.
    DB_DOMAIN A text string that specifies the network domain where the database is created.
    CONTROL_FILES Is assigned the comma-separated list of control file names to use for the new database. When you execute the CREATE DATABASE statement, the control files listed as values assigned to this parameter are created. If you fail to specify a filename for the CONTROL_FILES parameter, Oracle creates a file with a default operating system dependant filename.
    DB_BLOCK_SIZE Specifies the standard block size of the database. This size is used in the creation of the system tablespace and by default in any other tablespaces created. Take care when determining what this value should be because after the database is created, the value cannot be changed.
    UNDO_MANAGEMENT Determines whether the database starts in automatic undo management mode. A value of AUTO enables automatic undo management; MANUAL enables manual undo management mode. In 9i, AUTO is suggested, but MANUAL is default.
    UNDO_TABLESPACE When the instance starts in automatic undo management mode, it needs to have a tablespace in which to store its undo information. The default is SYS_UNDOTBS and is automatically created if you execute a CREATE DATABASE statement with the UNDO_MANAGEMENT initialization parameter set to AUTO and no UNDO TABLESPACE statement in the CREATE DATABASE statement.
    Step 3: Connect to and Start the Instance
    Connect to the instance as SYSDBA either using operating system authentication or the password file method of authentication and start up the instance using the STARTUP command.
    sqlplus '/ as sysdba'
    If your parameter file is not in the default location or is not named init<SID>.ora, you may need to specify the PFILE clause in the STARTUP command for the instance to start.
    Because you do not yet have a database attached to the instance, you need to start up the instance in NOMOUNT state:
    startup nomount;
    The instance is now started and ready for the CREATE DATABASE command.
    Step 4: Issue the CREATE DATABASE Statement
    create database mydb1 controlfile reuse
    Logfile
    Group 1 ('/mydb1/log1/log01a.log',
    '/mydb2/mydb1/log01b.log') size 50M,
    Group 2 ('/mydb1/log1/log02a.log',
    '/mydb2/log1/log02b.log') size 50M,
    Group 3 ('/mydb1/log1/log03a.log',
    '/mydb2/mydb1/log03b.log') size 50M
    Datafile '/mydb1/mydb1_system.dbf' 250M
    AUTOEXTEND ON MAXSIZE 500M
    Undo tablespace mydb1_undo1
    Datafile '/mydb/mydb1/mydb1_undo1.dbf' 50M
    Default temporary tablespace mydb1temp tempfile
    '/mydb/mydb1/mydb1temp1.dbf' size 75M
    Extent management local
    Character set US7ASCII
    MAXLOGFILES 10
    MAXLOGMEMBERS 10
    MAXLOGHISTORY 1
    MAXDATAFILES 500;
    Thanks
    Pavan Kumar N

  • About database creation in Peoplesoft.

    Hello..
    I am trying to create database by using scripts provided by peoplesoft HRMS9.
    FYI, I have successfully install tuxedo 9.1, webserver 9.2, PeopleTools8.49 and HRMS 9. I use Oracle 11gR1 on Oracle Enterprise Linux 5.3
    Well, I read on Appendix B in the Enterprise PeopleTools 8.49 Installation for Oracle and some websites.
    I have modified createdb10.sql, utlspace.sql. I ran those scripts and database created.
    Well, when I ran dbowner.sql I got some error. I run as oracle owner and log as sysdba.
    SQL> CONNECT PS/PS;
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    Connected.
    so I ran PUPBLD.SQL first. And then I run dbowner.sql. But the error still occured. I read from this http://psst0101.wordpress.com/2009/01/21/step-by-step-virtual-ps-install-database-creation/
    Any suggestion please, because I read in http://gasparotto.blogspot.com/ he did not run pupbld.sql but succeeded.
    Any one have same experience..??

    Lastly, you could try to run this script (PUPBLD.SQL) as SYSTEM, not as SYS.thank you, It's work by connect system/manager and run pupbld.sql.
    well, I run select default_tablespace from dba_users where username='PS' I get SYSTEM.
    I think these column is important information.. :
    username PS
    temporary_tablespace TEMP
    default_tablespace SYSTEM
    status OPEN
    user_id 28
    password ( blank )
    profile DEFAULT
    so, how about that?
    regard.
    Nia...

  • Does JRE 1.6 include a built-in SQL database?

    I'm investigating the creation of a custom Java database application that's intended to run on multiple systems, particularly Windows and Macs.
    I'd like to store and retrieve my data using SQL, rather than as flat files. At the same time, I'd also like to minimize the number of jar files required by the application.
    I've used JDBC to talk to external SQL databases; the programming part is not an issue. The question is whether I'm forced to obtain an external DB server (such as MySQL), which increases the cost and installation complexity of my app, or if Java includes an interface to built-in SQL or SQL-like database server.
    I'm thinking I already know what the answer to this is going to be, but no harm in checking.
    Thanks!

    The installs from Sun for linux, solaris and windows contains Derby. It is not part of the Java API so you still must put it in the class path.
    Apparently for some reason the Mac 1.6 version doesn't include it.
    Not really all that much of a problem because Derby is free and a new version was just released. That at least might suggest using that instead of the Sun one anyways. Derby is from the Apache site.
    There are at least a couple of other embedded databases as well.
    Finally there is a JDBC forum where these sorts of questions are probably better asked.

  • Database creation problems and parition consolidation

    This is my first time on here so please look past my green-ness. =)
    I Installed Oracle 8.1.7 successfully and opted to setup the database creation later so I could put the database on another partition. Well, I tried once to create the database on the partition I installed oracle onto (/oracle) but I had insufficient space, It said I needed 1.3 gigs. My "/database" partition is only a 1 gig parition (and /oracle is 2 gigs). My plan was of course, to seperate them.
    Ok, I didn't see an option to create the db on another partition so I resigned to using /oracle. My question now is, is the 960 megs on /oracle enough to create the database? I used the custom setup so I could see how everything was broken down and I noticed that my rollback segment is 500 megs. Is this necessary? Can I get by with 100 megs and be fine? Also, if I did do this, I'd have approximately 100 megs free for data, this is enough I hope??
    Lastly, I need to combine the partitions somehow without effecting /. The hard drive is broken down into:
    gigs
    5.5 /
    2.0 /oracle
    1.0 /database
    Does anyone have any ideas? In windows, I used partiton magic but I don't know if there is a linux version.
    One more thought (last one for real =), it had 50 megs allocated for it's shared memory pool. I'm assuming this will take away from the 128megs I have thus effectively making only 78 available to X, will this cause any noticeable problems other than a bit of slowdown? I have most if not all of my virtual memory free at all times. I know I should get more ram, but you know how the budget thing goes...
    Any help would be greatly appreciated,
    Rob

    Try running the catalog and catproc sql scripts.
    $ cd $ORACLE_HOME/rdbms/lib
    $ svrmgrl
    connect internal
    @catalog
    @catproc
    That will set up all of the internal views and packages that
    oracle needs to do DDL.
    Scott
    Don DeLuca (guest) wrote:
    : I'm gotten through the install and created the database. The
    : database comes up, I can do some simple stuff like create a new
    : user, create a simple table but when I try to run SQL DDL
    : statements I get errors saying: "recursive SQL error". I
    : looked at the sql.log file after the install. It doesn't look
    : like all the packages were created successfully. Have others
    had
    : similiar problems with the system table/package creation? To
    me
    : it looks like a DDL that was needed was not called during the
    : install and later caused problems during package creation.
    : This is my fourth time installing and I have the same problem
    : each time. I also tried to run the plsql.sql file to recreate
    : some of the packages but this did not work either.
    : I've just about given up and I'm starting to realize why its
    : free.
    null

  • Database creation process hangs

    I am manually creating a database on Windows 2k3 server using Oracle 11 r2. Using the Database Configuration Assistant to create a database, the process hangs for hours.
    I figured out and triedthe following:
    1. I have attempted using the GUI tool more than once to create the database and each time it hangs.
    2. Using the scripts have been created using the with configuration tool, I manually attemped to create database. -- I have attempted more than once.
    3. The database creation process hangs while running the EXECRM.SQL file that is called by the CATPCNFG.SQL which is called by CATPROC.SQL which is called by CreateDBCatalog.sql
    3. The EXECRM.SQL file hangs on the following statement EXECUTE DMBS_RMIN.INSTALL;
    I'm not sure why the PL/SQL packag is hanging at this point. Any help is appreciated.
    Thanks,
    Sheila

    I was able to create the databases prior to installing Enterprise Manager Grid control. I deleted the databases to re-create so they would be registered with Enterprise manager. Once I install Enterprise manager the creation process hung. I have also installed Essbase and Oracle/Hyperion Enterprise Performance Management Suite on the server. I'm trying to do some research on these BI tools.
    I'm tempted to uninstall Essbase and the Hyperion producst along with Enteprise Manager and start from scratch to test to see if I can create a database without these other products.

Maybe you are looking for