Your sybase account name and password will be different than your UNIX username and password. A typical sybase account name looks like this:
spr96db19
You may also be sharing your sybase account with other people in your group. People in your group will share the same sybase account name and same sybase password. Keep in mind that you should NEVER share your UNIX password with anyone under any circumstances
The main sybase area is in /usr/local/sybase. You will most likely be using
/usr/local/sybase/bin/isql
/usr/local/sybase/bin/apt
/usr/local/sybase/bin/dwb
1> dump database spr96db19 to "/tmp/spr96db19.dump" 2> go Backup Server session id is: 11. Use this value when executing the 'sp_volchanged' system stored procedure after fulfilling any volume change request from the Backup Server. Backup Server: 4.41.1.1: Creating new disk file /tmp/spr96db19.dump. Backup Server: 6.28.1.1: Dumpfile name 'spr96db191990AC34' section number 0001 mounted on disk file '/tmp/spr96db19.dump' Backup Server: 4.58.1.1: Database spr96db19: 238 kilobytes DUMPed. Backup Server: 3.43.1.1: Dump phase number 1 completed. Backup Server: 3.43.1.1: Dump phase number 2 completed. Backup Server: 4.58.1.1: Database spr96db19: 242 kilobytes DUMPed. Backup Server: 3.43.1.1: Dump phase number 3 completed. Backup Server: 4.58.1.1: Database spr96db19: 246 kilobytes DUMPed. Backup Server: 3.42.1.1: DUMP is complete (database spr96db19). 1> quit john 2>cp /tmp/spr96db19.dump ~/071296.dump john 2>rm /tmp/spr96db19.dumpObviously you will need to copy it to give today's date rather than 071296, and dump your own database rather than spr96db19.
Here is a sample session of restoring your database from a backup file:
1> use master 2> go 1> load database spr96db19 from "/grad/u/ledzian/071296.dump" 2> go Backup Server session id is: 16. Use this value when executing the 'sp_volchanged' system stored procedure after fulfilling any volume change request from the Backup Server. Backup Server: 6.28.1.1: Dumpfile name ' spr96db1990AC34' section number 0001 mounted on disk file '/grad/u/ledzian/071296.dump' Backup Server: 4.58.1.1: Database spr96db19: 2052 kilobytes LOADed. Backup Server: 4.58.1.1: Database spr96db19: 2060 kilobytes LOADed. Backup Server: 3.42.1.1: LOAD is complete (database spr96db19). Use the ONLINE DATABASE command to bring this database online; SQL Server will not bring it online automatically. 1> online database spr96db19 2> go Database 'spr96db19' is now online. 1> use spr96db19 2> goWe don't recomend that you try to restore your database unless you really need to. And even then you may want to contact us via email at help@paul first.
/usr/local/sybase/bin/isql -SGR -Uusername
where username is the sybase username that was given to you by your professor. Onces in isql, use sp_passwd oldpass, newpass
Here is a sample session:
john 2> /usr/local/sybase/bin/isql -SGR -Uspr96db19 Password: 1> sp_password spr96db19, secret 2> go Password correctly set. (return status = 0) 1> quit john 2>
#for sybase;
setenv DSQUERY GR
#for sybooks;
setenv SYBASE /usr/local/sybase
setenv SYBROOT /usr/local/sybase/sybooks
setenv EBTRC /usr/local/sybase/sybooks/sun5mol/.ebtrc
#for apt forms
setenv SYBFORMLIST <some directory in your homedir>
Note that you will have to logout and log back in for your changes in .cshrc to take effect
dump transaction mydatabase with no_logwhere mydatabase is the name of your database.