How to create database.properties???

Hi
i am a starter for JDBC...although I know a lot of java already...
can some one help me out to tell me what will be the structure of my database.properties file???
I am using MSSQL server as database...
I hv already set the classpath as shown under...
CLASSPATH=.;c:\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;c:\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;c:\Microsoft SQL Server 2000 Driver for JDBC
\lib\mssqlserver.jar
JDBC driver is....... com.microsoft.jdbc.sqlserver.SQLServerDriver
connection URL is jdbc:microsoft:sqlserver://server_name:1433/database_name
i hope any one can please help me out on the original structure of the database.properties file..................also will it b a text file?????

thnx for ur reply...
but cannot understand 1 thing......wot is that
hibernate doing there???
my database is under windows authentication
mode....so password n userid feild has to b emty
...ryte???
this file has to saved as a text file?????
Do you have any clue what you are doing at all? Any clue?
The previous post was based on a guess about your vague and only semi-coherent first post. So you are not using hibernate. Okay.
Using Windows only authentication with the MS driver is a no go (unless something changed in the last few days dramatically). You need to switch to mixed mode authentication or use a driver that supports Windows authentication.
What properties files are you rambling on about. Property files are simple text files.
Quite frankly I don't know why I am asking these questions. This seems really hopeless and you seem really in over your head.

Similar Messages

  • How to create database in 10g xe

    How to create database in 10g xe? could you please direct me to which documentation in 10g xe website? is it possible to create the db from the web console? if so, how? I can't seem to find a way to do it? Thanks

    You cannot: there can only be one XE database per host and it's created when you install Oracle XE.

  • How to create database from .sql file

    how to create database from .sql file..?? i put the sintax query in a sql file.. and i want to call it in java code..
    ho to do it..??

    why do you want to do this from java?
    i just don't see the point.
    find your dba and have him/her run it for you

  • How to create database item for fast formula?

    Hi,
    Is there any document for how to create database item for fast formula? I could not find in Metalink or this forum. Thanks.
    Andy

    Oracle ship many pre-delivered Database Items plus they're created automatically when you create Input Values (etc).
    There's often something already there for you. If there's not, you usually create Fast Formula functions to retrieve other data. You don't create your own custom DBIs; Oracle don't deliver APIs for that.

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Regards,
    Elvis Long
    TechNet Community Support

  • How to create database using shell script

    hai
    how to create database using shell script

    The documentation details the steps to create a database manually. Another option is to use DBCA to create the scripts. DBCA will give you a complete set of scripts that will create a database.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref220

  • How to create database with ASM

    HI
    How to create database with ASM?
    I install vmware workstation on window XP .On virtual machine install Linux 5 enterprise (Oracle) install.
    I install oracle DB software only. Also make 3 disk for ASM .
    1 -- When I want to install oracle DB with ASM . In this process candidate disks not show . Why?
    How I can see disks ..
    so I simple install oracle DB software only.
    2 -- Now I want to create database with ASM by DBCA .
    What process I will follow ?
    Please guide me
    Thanks

    Hi
    Steps to create database with ASM.
    1.Install oracle binary with active CRS(For single node installation CRS is activated when you run root.sh) .
    2.Create disk without file ssytem.
    3.Assign disk to raw .
    4.Change owner and permission to raw devices.
    5.Configure ASM manually or USing DBCA.
    Manually ASM Configuration.
    a.Create initialization parameter file and password file.
    b.Mandatory parameter is "instance_type=asm" as per your need configure rest of parameter like db_cache_size,large_pool_size,processes,remote_login_passwordfile,shared_pool_size etc..
    c.To discover disk configure "asm_diskstring=/dev/raw/raw*"
    Using DBCA to configure ASM.
    1.In storage type section choose ASM.It will ask for password of sysdba in 10g.
    2.ASM configuration window will open -> here it create disk group -> it shows all available ASM candidate disk automatical -> choose normal redundancy,external redundancy or high redundancy.
    ASM disk also can be conbfigured with ASMLIB .
    If ASM disk is configured you can start asm instance in nomount state and query to v$asm_disk to see all candidate disk.V$asm_disk only shows disk which is configured in asm_diskstrings.
    Hope this will help U,
    Tinku

  • How to create database dynamically

    Hi,
    Some one suggest, how to create database dynamically in oracle 8.1.6.0.0 standard edition with an example.
    Thanks in advance,

    Hello,
    I'd ask in the
    Windows Presentation Foundation (WPF) forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • How to create Database, table , and apply triiger on oracle10g lite ?

    Hello All,
    I want to use oracle 10g lite , i just download oracle 10g lite from oracle site and just install on my system, i have no any knowledge how to create database, how to create tables and how to apply triggers on tables. I want to access this database using JDBC.
    plzzzzzzzzzzzzzzzzzz help me...............
    Thanks in advance
    Pankaj

    are you trying to use oracle lite just as a database? it is normally used as part of a data synchronisation from a server, replicating snapshots to create the database and tables on the client.
    PL/SQL format triggers are not supported in the oracle lite client. Java stored procedures are, but you would need to build the table interactions

  • How to create database link between oracle9i database and oracle10g

    How to create database link between oracle9i database and oracle10g
    oracle9i database name "Prod" windows server 2003 ( 172.x.x.x)
    oracle10g database name "TEST" sun solaris 9 (165.x.x.x.x)
    Please help me on this

    For connections between 10.2 and 9.2 the 9.2 end MUST be at 9.2.0.4 or higher. Connections between 10.2 and 9.2.0.1, 9.2.0.2 or 9.2.0.3 are not supported.
    Connections between 10.2 and 9.0.1 was never been supported.
    Cheers !!!!
    Bhupinder

  • How to create database and table with GUI?

    How to create database and table with GUI?
    for linux can do that?
    or have only way to create table by use sql*plus.
    everyone please help me.
    thanks

    go to www.orasoft.org
    here is a gui tool.
    null

  • How to create database in timesten?

    Please let me know how to create database in timesten as we create in Oracle 10g named orcl
    Please guide in detail
    Thanks.

    Hi!
    You can use TimesTen in standalone mode instead of Cache connect to Oracle.
    If you have deployed TimesTen on Linux then you should make DSN in sys.odbc.ini which is located in info folder of TimesTen. If you are using Windows then you can use ODBC utility in control panel.
    You can see the documentation of TimesTen for more detailed information.
    /Ahmad

  • If ur database crash u have only export of database how u create database f

    if ur database crash u have only export of database how u create database from starting with help of export give steps

    What is an "export give steps?"
    If ur's database crashes, how is it u's responsibility to restore it?
    Now, if my database crashes, I just restart it in crash recovery mode and not even worry about the backup or export. It is not needed.

  • How to save a properties object to a file / how to create a properties file

    hi,
    i am writing an application in which all the database and user information is stored in a properties object and is later retreived from it when a database connection or login etc is required.
    i wanna know how can i save this object / write it to a file i.e. how do i create a properties file.
    so that every time the application is run to create a new dbase etc the entire info regarding that will be stored in a new property file.

    Load:
    Properties p = new Properties();
    FileInputStream in = new FileInputStream("db.properties");
    p.load(p);
    String username = p.getProperty("username");
    String password = p.getProperty("password");
    // ...Save:
    String username = "user";
    String password = "pw";
    Properties p = new Properties();
    p.setProperty("username", username);
    p.setProperty("password", password);
    FileOutputStream out = new FileOutputStream("db.properties");
    p.store(out, null); // null or a String header as second argumentThe file will look something like
    username=user
    password=pw

  • How to create database triggers in ABAP Dictionary

    Hi,
    How can i create database triggers on tables, like the update, delete and insert triggers which we used to create in SQL sever and other databases, is there any transaction for doing the same from ABAP dictionary. or should it be done at the raw database level.
    Thanks
    Akila.R

    Hi,
    please check out the following link it might help you
    http://help.sap.com/saphelp_nw2004s/helpdata/en/71/a8a77955bc11d194aa0000e8353423/content.htm
    *************please reward points if the information is helpful to you******************

Maybe you are looking for

  • Error while executing tuning task in 10gr2

    10.2.0.5 on RHEL/5. select name, status from dba_sql_profiles where status = 'ENABLED' / 2 3 4 no rows selected SELECT task_name, EXECUTION_START,EXECUTION_END,status,ERROR_MESSAGE FROM dba_advisor_log WHERE task_name = '1nqbz1wytzjps_tuning_task'; T

  • Recovered missing photos, but created many duplicates, not showing in album

    I tried to clean my hard disk. It seemed that many of the same photos were saved in 'data' file, and an 'original' file, which I located in Pictures AND my computer. I felt they were duplicate files, not duplicate photos, and sent them to the trash-n

  • HT6147 Every since. Upgraded to ios 701 my wifi signal is weak or lost I used to get a signal out in the back yard but not anymore

    I updated to ios 7 now my wifi strength is low or gone I use to sit out on the back patio browsing the internet now I can't  even get a signal in the next room in the house very disappointed

  • GetMessageExample.java

    I have a problem with the exercise GetMessageExample.java, that u can find here:      http://developer.java.sun.com/developer/onlineTraining/JavaMail/exercises/MailGetting/index.html I can compile the exercise but when I run the exercise happend this

  • Network management

    Hello guys.. this my first question for me at Cisco support forums.. I have couple of questions and I would like to get your views and answers.. Suppose that I am administrator of a university, and I created an excellent design for my network. 1)How