Sybase Database Backup

Dear Expert,
I am using Sybase Database 15.0 with unix, as i new to Sybase please me  how to take backup of Sybase Database.
i get the below error
1> dump database pubs2 to 'd:\dump'
2> go
Msg 7205, Level 17, State 2:
Server 'BHAVANIPC', Line 1:
Can't open a connection to site 'SYB_BACKUP'. See the error log file in the ASE
boot directory.
Msg 7205, Level 18, State 3:
Server 'BHAVANIPC', Line 1:
Can't open a connection to site 'SYB_BACKUP'. See the error log file in the ASE
boot directory.
Also we opened the backup server
Thanks & Regards,
Akhila

You mentioned 'Sybase Database 15.0 with unix' on you post,
so you must make sure your backup server was started and working ok by following method:
under unix command line, issue 'showserver' command to list servers online, and grep 'backupserver' only 
          $showserver |grep backupserver
          Example:
/data/ase1570 > showserver |grep backupserver
0 S sybase   19210 19209  0  80   0 -  5788 -      Aug01 ?        00:00:00 /data/ase1570/ASE-    15_0/bin/backupserver -SSYB_BACKUP -e/data/ase1570/ASE-15_0/install/SYB_BACKUP.log -N25 -C20 -    M/data/ase1570/ASE-15_0/bin/sybmultbuf
isql to connect to ASE15 server, and issue 'sp_helpserver SYB_BACKUP' to check if SYB_BACKUP server host is available ?
          $isql -Usa -Psa_pwd -SASE15
          1> sp_helpserver SYB_BACKUP
          2> go
          Example:
1> sp_helpserver SYB_BACKUP
2> go
name       network_name   security_mechanism   server_principal   class      
status                                                                  
id cost
SYB_BACKUP SYB_BACKUP     NULL                 NULL               ASEnterprise
timeouts, no net password encryption, writable , enable login redirection
1 NULL
isql to connect to ASE15 server, and issue 'SYB_BACKUP...sp_who' to test connection from ASE to Backup server is OK !!
           $isql -Usa -Psa_pwd -SASE15 
          1> SYB_BACKUP...sp_who
          2> go
          Example:
1> SYB_BACKUP...sp_who
2> go
spid        status     loginame                       hostname     blk
cmd             
     1      sleeping   NULL                           NULL         0 
CONNECT HANDLER 
     2      sleeping   NULL                           NULL         0 
DEFERRED HANDLER
     3      runnable   NULL                           NULL         0 
SCHEDULER       
    11      runnable   NULL                           ASE1570      0 
SITE HANDLER    
    12      running    sa                             sgsinvm0256  0 
NULL           
if the above checking is all ok, then you should be able to dump database without problem !!
BTW, you must notice you are using SAP Sybase ASE 15.0 with Unix , so the dump directory should be Unix filesystem format such as '/backdir/pubs2.dmp' rather than Windows filesystem format such as 'd:\pubs2.dmp' !!
HTH ! Thanks !!
Regards,
Robert

Similar Messages

  • What are the commands using in SAP ECC 6.0 ehp on SYBASE Database? Backup and restore commands?

    Hi All,
    What are the commands using in SAP ECC 6.0 ehp on SYBASE Database? Backup and restore commands?

    Hi Jayachander,
    Have a look at these sap notes:
    For taking backup: Schedule from DB13 and get the exact command from Logs
    1841993 - SYB: How to schedule backups in DBA Cockpit
    1887068 - SYB: Using external backup and restore with SAP Sybase ASE
    How to restore DB
    1611715 - SYB: How to restore a Sybase ASE database server (Windows)
    Divyanshu

  • Can I use tape drive for backup with win 2012 OS & Sybase database?

    I have installed enhancement package 6 for SAP ERP 6.0 with OS windows 2012 and database sybase ASE(15.7.050). I am facing problem while taking database backup on tape drive. I want to know how to initialize tape drive in case of sybase DB and is it possible to take back-up on same. I failed to schedule backup from DB13 so now I am doing that activity by command line. So please help me to solve these issues.
    Here I am attaching some files related with backup commands that presently I am using. My SAP system ID is DQS.

    That output actually looks pretty good, it was dumping to the tape drive, it just ran out of tape because the drive apparently doesn't automatically detect when it is reaching the end.
    For the next step, try adding a CAPACITY parameter to your dump command as discussed at these places in the documentation.
    Specifying tape capacity for dump commands
    Set the Maximum Capacity for a Tape Drive
    Your output above shows it was able to dump 87565594 KB before it ran out of tape,
    so lets be a little conservative and try
    dump database DQS to TAPE1 with   capacity = 87000000, init
    go
    When the dump reaches that point, ASE should prompt you to pop in another new tape
    and then issue the sp_volchanged procedure from a second session (it will tell you what parameters to use for sp_volchanged).
    Note: once we get the dump working successfully, we can then create a logical dump device that would store the capacity value, and create a full dump configuration so you gain all the new functionality like dump history, etc.
    Enhancements to dump and load
    -bret

  • Backup the entire sybase database

    I am doing a project in avaya. I installed ipocc(a avaya product) in windows.
    Ipocc it self have sybase database. I try to take a backup it show me threshold error.
    The error is i mentioned below
    Backup Server: 4.172.1.1: The value of 'reserved pages threshold' has been set to 85%.
    Backup Server: 4.172.1.2: The value of 'allocated pages threshold' has been set to 40%.
    Backup Server session id is: 25. Use this value when executing the 'sp_volchanged' system stored procedure after fulfilling any volume change request from the Backup Server.
    Backup Server: 4.135.2.1: Invalid Device: you cannot dump to or load from a directory, 'C:\Users\Administrator\Desktop\Backup'.
    Error encountered by Backup Server.  Please refer to Backup Server messages for details.

    that's not a command, that's a path
    see if you can open a query window, and run the command manually
    e.g. the command that Bret already posted
    dump database mydatabase to 'C:\Users\Administrator\Desktop\Backup\mydatabase.19Jan2015.dmp'
    replace mydatabase by the actual database name.
    Or run a test for the master database, which should create a small backup file
    dump database master to 'C:\Users\Administrator\Desktop\Backup\master.19Jan2015.dmp'
    just a side comment, your desktop might not be the best place to store backup files...

  • The automated backup of the sybase database in zfd4.X does not work afther installing zfd4 IR 5

    Hello everyone,
    Before installing zfd4 IR 5 it was possible to backup the sybase database
    with the startser dbbackup command from the server console with cron.
    See document in cool solutions "Automating the backup of the sybase database
    in zfd4.x" by Shaun Pond.
    After installing zfd4 IR5 it doesn't work anymore.
    I have added in the properties files the section [DBBackup Service] in the
    properties file.
    This section is shown up in a listser * on the console.
    I get the following error in the logger screen when doing a startser
    dbbackup:
    Start service utility: uable to start the service
    'Zenworksinvservice/dbbackup service'
    java.lang.nosuchmethoderror:
    com.novell.zenworks;desktop.inventory.dbutilities. dblookup: method
    getconnection()Ljava/sql/connection; not found
    at
    com.novell.utility.servicemanager.servicemanagercl ient.throwexception
    (servicemanagerclient.jav:343)
    at com.novell.utility.servicemanager.servicemanagercl ient.handleresponse
    status (servicemanagerclient.jav:316)
    at
    com.novell.utility.servicemanager.servicemanagercl ient.processresponse
    (servicemanagerclient.jav:210)
    at com.novell.utility.servicemanager.servicemanagercl ient.throwexception
    (servicemanagerclient.jav:75)
    Zenworksinventory startservice exited with status -1
    Any idea ?
    Kind regards,
    Bearelle Jacques

    Jacques,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Sybase Tape Backup

    Hi All,
    Could you please share the best practice for the database backup for Sybase . Our requirement is to take the backup through the Tape . Need to know the feasibility of taking the Tape backup and the recommendation / tools support for the backup or the feasibility take the individual tape backup instead of tape library .
    Regards,
    Ruchi

    Hi Ruchi,
    This is duplicate thread . refer to original thread http://scn.sap.com/thread/3595877
    Regards,
    Deepak Kori

  • How to control the number of rows selected from a sybase database table?

    Hi, JDBC guru,
    I'm working on project using Sybase 11.9.x database.We need to process a record in a table,first select it from the table,then do some computing,finally write it to a dbf file, if the above steps succeed,remove the original row in the table.Quite evidently, all these operation should be put into one transaction. But how can I select just a number of rows from the sybase database table?
    Any hints?
    Thank you in advance.
    Regards,
    Jusitne

    Statement stmt...
    stmt.setMaxRows(20);

  • DBACockpit Configuration - Remote Database backup of Java Stack.

    Hi All,
    I am configuring remote database backup of my SAP Java stack system.
    I have successfully connected the system in dbacockpit. I have gateway installed also on the remote host system. but Database scheduling on DB13 failed.
    On the OS of CEN system, I can connect to the host system of the remote using the OPS$ logon and i.e
    sqlplus /@SID as sysdba  - (It connected, to confirm i querried the v$instance I was also able to shutdown the remote system)
    E:\>sqlplus /@SID as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed May 18 15:37:46 2011
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    But when I ran the brtools to perform the backup I got this error.
    "BR0301W SQL error -12560 at location BrDbConnect-2, SQL statement:

    Hi Niyi,
    This is a TNS error. The system is not able to connect TNS by using br*tools.
    Firstly, check your environment variables. They should be as same as java system environmnt variables.
    Secondly, check the link below;
    [BR0301W SQL error -1017;
    You need to create a synonym and SAPUSER table for the gateway installation <sid>adm user on Java database. By doing so, br*tools will be able to connect to the java database.
    Best regards,
    Orkun Gedik

  • Error restoring SQL 2008 R2 DB into SQL 2012: BACKUP LOG cannot be performed because there is no current database backup.

    I have a SQL 2008 R2 database that I am trying to move to 2012.  Made a full backup of the database in 2008 R2.  Recovery model is Simple, compatibility level is 2008  Went to 2012, created a dummy database, did Tasks--> Restore -->
    Database , located the backup file, selected it, changed the file locations and tried to restore the backup (with overwrite option), got the following error:
    BACKUP LOG cannot be performed because there is no current database backup.
    This is a simple task that has always worked in 2008 R2.  Does anyone know what the problem is and a possible solution?
    Thanks

    Hi,
    This error occurs when the database recovery model has been changed to Simple and/or the recovery model has been changed back to Full but a full backup has not been performed since the change.
      If a full backup has been performed, the following conditions will require that another full backup be taken:
     · The recovery model had been changed without taking a full backup
     · A SQL maintenance plan task had changed the recovery model (reindexing can cause this)
     · A backup specifying TRUNCATE_ONLY had been run on the database
     · The database was detached from another server and attached to the current server
    Additionally, if we take full database backup after the Database is set to readonly, Then transaction log backup we will end up with this error. This is expected behavior. I have list an example within the link below.
    Please check above conditions and fix your issue, if you have any concern, please let me know.
    Example:
    BACKUP LOG cannot be performed because there is no current database backup.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b5c36e60-836f-4c9e-b9d7-3fb3f3ee4d37/backup-log-cannot-be-performed-because-there-is-no-current-database-backup
    Thanks
    Candy Zhou

  • How to restore a database backup taken from a SQL Server 2012 instance to SQL Server 2014

    I am trying to restore a database backup taken from a SQL Server 2012 instance to my new SQL Server 2014 instance.  When I add the .bak through the Mgmt studio UI, it does not seem to find a backup set in the file so I cannot proceed (does not give
    me any errors though either.  I tried restoring through TSQL command but only got a database restore terminating abnormally error with no other details.  How can I restore this database to SQL 2014?

    Hello,
    Please examine SQL Server Error Log and share with us any error you can find. The following article may locate the log:
    http://msdn.microsoft.com/en-us/library/ms187109.aspx
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How do I connect to a Sybase database from Crystal?

    I have never tried to connect to Sybase data before and I am having difficulty figuring out how.  I am using CR XIR2 from my desktop and trying to connect to what I am told is a Sybase database (voicemail system).  I believe Sybase vers 12.5, but not entirely sure yet.  Postings on the forum and other sites appear to be directed toward sdk developers or other development and were not helpful.  Most of what I am reading points toward an Adaptive Server® Enterprise (ASE) ODBC Driver by Sybase.  However, I was told that was not true but the person promising to forward the information never came through. Are there additional drivers I need to install or can someone point me in the right direction?  Thanks!

    Hi Wendy,
    32-bit NATIVE DRIVERS
    CRDB_P2SSYB10.DLL is the native driver for Sybase ASE.  It is used with Sybase ASE 12.5
    NOTE:  The native driver for Sybase ASE cannot be used to connect to Sybase ASA (Adaptive Server Anywhere) or Sybase ASIQ (Adaptive Server IQ).  Sybase ASA and Sybase ASIQ include their own ODBC drivers as part of their installation package.  These drivers provide the only means of connecting to Sybase ASA and Sybase ASIQ databases.
    I hope this helps you.
    Regards,
    Prashant
    Edited by: Prashant Saduwale on Oct 10, 2008 4:19 PM

  • Need some suggestion doing database backup

    Hi All,
    I am working on the 11gR2 RAC oracle database and below are the details.
    SQL>select * from gv$version;
    INST_ID BANNER
    2 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    2 PL/SQL Release 11.2.0.1.0 - Production
    2 CORE 11.2.0.1.0 Production
    2 TNS for Linux: Version 11.2.0.1.0 - Production
    2 NLSRTL Version 11.2.0.1.0 - Production
    1 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    1 PL/SQL Release 11.2.0.1.0 - Production
    1 CORE 11.2.0.1.0 Production
    1 TNS for Linux: Version 11.2.0.1.0 - Production
    1 NLSRTL Version 11.2.0.1.0 - Production
    3 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    3 PL/SQL Release 11.2.0.1.0 - Production
    3 CORE 11.2.0.1.0 Production
    3 TNS for Linux: Version 11.2.0.1.0 - Production
    3 NLSRTL Version 11.2.0.1.0 - Production
    ps -ef|grep pmonoracle 11077 11067 0 10:37 pts/0 00:00:00 grep pmon
    oracle 12383 1 0 2011 ? 00:16:18 ora_pmon_cc2crt2
    oracle 12432 1 0 2011 ? 00:07:43 ora_pmon_cc3crt2
    oracle 12437 1 0 2011 ? 00:07:11 ora_pmon_cc4crt2
    oracle 12814 1 0 2011 ? 00:06:01 ora_pmon_ccoreqal2
    oracle 12816 1 0 2011 ? 00:05:50 ora_pmon_ccorecrt2
    I have 5 databases in these three severs and having around 20 GB of size except one database. The size of the this database (ccoreqal2) is 7.5 TB. I have took the full database backup using expdp for all DB's except the BIG size DB. i am not able to use the expdp because of the size. Which way is best to do the backup for this big size DB.
    The purpose of taking the backup is, we are upgrading our oracle to 11.2.0.3 and We don't have any regular backups (RMAN or EXPORT) on these databases. these are QA databases.
    Please let me know, how i need to prepare for this DB backup.
    Thanks in advance for your help.

    >
    i am not able to use the expdp because of the size
    >
    Why not? You can have expdp create multiple files on export so that each file is no larger than the size you specify. This makes it easier to manage large exports.
    Using multiple files and a parallel export will handle this for you.
    See the DUMPFILE section of the database utilities doc - http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_export.htm
    It has this example of file splitting using PARALLEL
    >
    Example
    The following is an example of using the DUMPFILE parameter:
    expdp hr/hr SCHEMAS=hr DIRECTORY=dpump_dir1 DUMPFILE=dpump_dir2:exp1.dmp,exp2%U.dmp PARALLEL=3
    The dump file, exp1.dmp, will be written to the path associated with the directory object dpump_dir2 because dpump_dir2 was specified as part of the dump file name, and therefore overrides the directory object specified with the DIRECTORY parameter. Because all three parallel processes will be given work to perform during this job, the exp201.dmp and exp202.dmp dump files will be created and they will be written to the path associated with the directory object, dpump_dir1, that was specified with the DIRECTORY parameter.

  • Help! How to restore LR 1.1 database backup

    I run LR 1.1 under Windows XP. I have LR 1.1 setup to backup the database to an external hard drive. Once a week it prompts me to backup the database, which I do. In the middle of importing some raw files from a CF card, I received a message that my catalog was corrupt. My understanding is that I need to remove the LR Catalog file from the LR directory in My Pictures folder and replace it with the backup catalog. On the external hard drive where I have been backing up LR, I opened a directory called R:\Lightroom Database Backup\2007-08-22 0900, which I assume is where my latest backup is. Inside this directory is a 251,560 KB file called Lightroo. That is correct, Lightroo with no "m". Is this suppose to be the backup LR catalog file? If so, after dragging it into the LR folder, and then CTRL click load LR, when I try to specify this Lightroo file, but LR does not recognize it.
    I am lost. How do I use the database backup that I have been regularly creating on my external hard drive to correct the corrupt catalog message I get when loading LR?

    The backup file is not called Lightroo unless that is what you named it for some reason. The default backup files have the same name as your working database file whatever that is - XXXXXXX.lrcat. The backup folder you listed looks ok. When you setup the backup procedure on the external hard drive, did you look to make sure that LR was actually putting a copy of your database file where you intended and that it was named properly. Maybe you can simply change the file name from Lightroo to Lightroom.lrcat LR does not care what you name the database file as long as it has the proper extension, lrcat.
    It would also be a good idea to check exactly where LR is putting your backup files. I believe there is a Browse button you can click to open a dialog and see where LR is currently putting them.
    You don't necessarily have to replace your corrupt file with a backup file to test the backup. You can point LR at any functional database file and it will open it wherever it is. So you can test your backups using the File/Open Catalog command. Once you are sure you have a working file, simply move the backup it to the location where you want it stored and point LR to that location in the future.

  • How to connect sybase database in JDeveloper 11g using JConnect

    Hi
    How to connect sybase database in JDeveloper 11g using JConnect? Please help.

    User,
    It would help if you explained Sybase Jconnect instead of leaving us to google.
    At any rate, it appears you need to create a library definition in JDeveloper, add the appropriate JConnect JAR files to the library's classpath, and then add the library to your project.
    John

  • Need a Script to check Database backup chain for revovery

    Dear All,
    any having a handy script to check database backup chain ,
    Database A --> Full backup  -- Diff -- log1 --Log 2 ...... and scan through the files to validate if we can recover the database using the avaiable backups.
    Regards
    Sufian
    Mohd Sufian www.sqlship.wordpress.com Please mark the post as Answered if it helped.

    You can use below TSQL
    set nocount on
    go
    if exists ( select name from tempdb..sysobjects where name like '#DatabasesBackupsStatus%')
    drop table #DatabasesBackupsStatus
    GO
    create table #DatabasesBackupsStatus
    ServerName varchar(100) null,
    DBName varchar(100) null,
    RecoveryModel varchar(100) null,
    LastFullbackup datetime null,
    days_since_Lastfullbackup int null,
    days_since_Lastdiffbackup int null,
    HOURS_since_LastLogbackup int,
    DBStatus varchar (100) null,
    FullBackupLocation varchar(1000) null,
    MEDIASET INT,
    JobOwner varchar(100) null
    Go
    insert into #DatabasesBackupsStatus(ServerName,DBName)
    select convert(varchar,serverproperty('ServerName')),a.name
    from master.dbo.sysdatabases a
    where a.name <> 'tempdb'
    update #DatabasesBackupsStatus
    set LastFullbackup=b.backup_start_date,
    days_since_Lastfullbackup=datediff(dd,b.backup_start_date,getdate()),
    MEDIASET=b.media_set_id
    from #DatabasesBackupsStatus a,(select database_name,MAX(media_set_id)media_set_id,max(backup_start_date) backup_start_date
    from msdb..backupset where type='D' group by database_name)b
    where a.DBName=b.database_name
    update #DatabasesBackupsStatus
    set RecoveryModel=convert(sysname,DatabasePropertyEx(DBName,'Recovery'))
    update #DatabasesBackupsStatus
    set DBStatus=convert(sysname,DatabasePropertyEx(DBName,'Status'))
    update d
    set d.FullBackupLocation=b.physical_device_name
    from #DatabasesBackupsStatus d , msdb..backupmediafamily b
    where d.MEDIASET =b.media_set_id
    update d
    set d.days_since_Lastdiffbackup=datediff(dd,b.backup_finish_date,getdate())
    from #DatabasesBackupsStatus d , (select database_name,max(backup_finish_date) backup_finish_date
    from msdb..backupset where type ='I' group by database_name) b
    where d.DBName = b.database_name
    update d
    set d.JobOwner=b.[user_name]
    from #DatabasesBackupsStatus d , msdb..backupset b
    where d.MEDIASET = b.media_set_id
    update d
    set d.HOURS_since_LastLogbackup=datediff(hh,b.backup_finish_date,getdate())
    from #DatabasesBackupsStatus d , (select database_name,max(backup_finish_date) backup_finish_date
    from msdb..backupset where type ='L' group by database_name) b
    where d.DBName = b.database_name
    AND d.RecoveryModel != 'SIMPLE'
    Go
    select * from #DatabasesBackupsStatus
    Go
    drop table #DatabasesBackupsStatus
    Please Mark This As Answer if it solved your issue 
    Please Mark This As Helpful if it helps to solve your issue
    Thanks,
    Shashikant

Maybe you are looking for