Solved

sonicwall viewpoint 6 database shrink Mysql database

Posted on 2013-05-15
6
1,253 Views
Last Modified: 2013-09-12
Hi,

want to reduce mysql database size used for sonicwall viewpoint logs and reports.

current database size is 90GB

Sonicwall help url options and commands not working

http://www.sonicwall.com/downloads/GMS_Maintenance_Procedures.pdf

https://www.fuzeqna.com/sonicwallkb/consumer/kbdetail.asp?kbid=4734


The raw syslog data in the RAWSYSLOGDB databases and in the [ViewPoint]\syslogs\archivedSyslogs folder will be deleted daily at the time specified at Console > Reports > Summarizer - ‘Delete Syslog Daily At’.  However, the space in the database is not reclaimed, so the following SQL must be run to remove white space and truncate the transaction log before the file size will more accurately reflect the amount of space used in the database:
 
(execute these statements one-by-one from a command prompt on the ViewPoint server)    
 
osql -U sa -P password -S IPaddress\SNWL -Q "use rawsyslogdb; DUMP TRAN rawsyslogdb WITH TRUNCATE_ONLY;”
osql -U sa -P password -S IPaddress \SNWL -Q "use rawsyslogdb; DBCC SHRINKFILE (rawsyslogdb _Log, 10);"
osql -U sa -P password -S IPaddress \SNWL -Q "use rawsyslogdb; DBCC SHRINKDATABASE (rawsyslogdb, 0);”      
 
                  Replace password with the password used during installation, and replace IPaddress with the IP of the ViewPoint server.
             Replace ‘rawsyslogdb’ with ‘sgmsdb’ in the OSQL above to shrink the SGMSDB database and truncate the transaction log.
 
above commands not accepting after login on mysql
kindly suggest.

Current MY SQL version showing 5.0.85
0
Comment
Question by:mash1978
  • 3
  • 3
6 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39173604
Topic: MS SQL Server
You may get more response if you have this question moved to a more appropriate topic area, such as:
http://www.experts-exchange.com/Database/MySQL/
0
 

Author Comment

by:mash1978
ID: 39174780
not found any solution in this area
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39176441
not found any solution in this area
No kidding.  Did I not just finish saying the same thing?  I suggest you delete this question and re-post in a more appropriate Topic area.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Accepted Solution

by:
mash1978 earned 0 total points
ID: 39176638
you are providing thousands of link and ask to search or find answer in this

We are not experts in database

so i will say thanks and good bye.. experts-exchange experts...
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39177331
And I wish you the best of luck.
0
 

Author Closing Comment

by:mash1978
ID: 39486146
no solution provided
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
cannot connect to sqlserver 8 26
TSQL - How to declare table name 26 29
SQL SELECT query help 7 34
SSRS Enable Remote Errors 4 24
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question