How to compress FM database

Hello
How to compress FM database.
FM 4.2(7b) is used with Postgres, and the database is currently at 11.2 gigs.
Is it true that there is a vacuum command that can be run against SQL dbs.

Hello Chetan,
Here is how to compress PostgresSQL
FM Server is running slow with Postgres.
Please check database size ($INSTALLDIR/dcm/db/data), size should be less than 3 GB. (On windows, right-mouse click on “data” folder and select “properties” menu item, a dialog will pop up and display folder size. On linux/solaris, just run “du –k $INSTALLDIR/dcm/db/data.” command)
Run the following command to reduce size:
1.Stop FMServer.
      2. cd $POSTGRES_DIR/bin
      3. run ./psql.exe –U db_username dcmdb (where dcmdb is the database name)
      4.run this command at psql prompt.
                #vacuum full analyze verbose;
                #\q
      5. You should see database size is reduced. (The above might take a while)
Change the following parameter inpostgresql.conf to slow down the growth. Here is the instruction:
1. stop postgresql services
      2. edit $INSTALLDIR/db/data/postgresql.conf
      Change following parameter:
      checkpoint_segments = 6        
      max_fsm_pages = 532000
shared_buffers = 128MB
temp_buffers = 32MB
work_mem = 4MB
maintenance_work_mem = 16MB
max_fsm_pages = 532000
log_min_duration_statement = 200
      3. Restart postgresql services. (remove first '#' if it is there)

Similar Messages

  • How to compact the database?

    Hi! Im new to java programming. I wish to seek help on how to compact the database using java.
    Any help will be greatly appreciated.
    thanks.

    You wish to compress the database in Java? Most databases have support for compression.

  • How to compress dmp file in expdp..

    Hi All,
    I am usign Oracle database 10g, anybody havign any idea of how to compress your dumpfile using expdp then let me know.
    I tried with compression option of expdp but the dmp file size is same as I have it without compression.
    Thanks..

    Hello maybe you can try with this
    the command is mknode (with this option you can to comprees at the same time to execute the exp)
    ORACLE_HOME=/u01/OH_RDBMS/10.2.0
    PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/usr/local:/bin:.
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:.
    ORACLE_SID=PSFSHIST
    NLS_LANG=American_America.WE8ISO8859P1
    export ORACLE_HOME PATH LD_LIBRARY_PATH NLS_LANG ORACLE_SID
    #directory
    DIR_RESP=/RESPALDO/
    fecha=`date +%d.%m.%Y_%Ou`
    #drop the last backup
    rm $DIR_RESP/*.gz
    #create exp
    #you can use the pipe for compress the file
    mknod $DIR_RESP/exp.pipe p
    #compress dmp whit file pipe
    gzip < $DIR_RESP/exp.pipe > $DIR_RESP/export_xxxx.dmp.gz &
    #El export se manda al archivo tipo pipe
    you can change for expdp
    exp system/xxxxx@xxxxxxx full=y file=$DIR_RESP/exp.pipe log=$DIR_RESP/export_xxxxx.log statistics=none direct=y consistent=y rows=no
    #TERMINA PROGRAMA

  • Compress the database

    Hi all,
    i want to know, how can i compress my database? Can i delete .trc File? Please help!
    thank you very much and greeting from germany!
    rabbit

    There are 3 locations where the traces files are stored. With this information you will be able to know what are the purpose of trace files and where they are located.
    BACKGROUND_DUMP_DEST
    Parameter type
    String
    Syntax
    BACKGROUND_DUMP_DEST = {pathname | directory}
    Default value
    Operating system-dependent
    Parameter class
    Dynamic: ALTER SYSTEM
    Range of values
    Any valid local path, directory, or disk
    BACKGROUND_DUMP_DEST specifies the pathname (directory or disc) where debugging trace files for the background processes (LGWR, DBWn, and so on) are written during Oracle operations.
    An alert file in the directory specified by BACKGROUND_DUMP_DEST logs significant database events and messages. Anything that affects the database instance or global database is recorded here. The alert file is a normal text file. Its filename is operating system-dependent. For platforms that support multiple instances, it takes the form alert_sid.log, where sid is the system identifier. This file grows slowly, but without limit, so you might want to delete it periodically. You can delete the file even when the database is running.
    See Also:
    Oracle9i Database Administrator's Guide for more information on setting this parameter and on alert files
    Your operating system-specific Oracle documentation for the default value of this parameter
    "USER_DUMP_DEST" for information on setting a destination for server process trace files
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch114.htm#REFRN10008
    USER_DUMP_DEST
    Parameter type
    String
    Syntax
    USER_DUMP_DEST = {pathname | directory}
    Default value
    Operating system-dependent
    Parameter class
    Dynamic: ALTER SYSTEM
    Range of values
    Any valid local path, directory, or disk
    USER_DUMP_DEST specifies the pathname for a directory where the server will write debugging trace files on behalf of a user process.
    For example, this directory might be set as follows:
    On MS-DOS: C:\ORACLE\UTRC
    On UNIX: /oracle/utrc
    On VMS: DISK$UR3:[ORACLE.UTRC]
    See Also:
    Oracle9i Database Performance Tuning Guide and Reference for more information about the use of trace files
    Your operating system-specific Oracle documentation for the range of values
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch1220.htm#REFRN10229
    If you get connection as sys or system in SQL*PLus you can find the values of those init parameters.
    SQL> show parameters user_dump_dest
    NAME TYPE VALUE
    user_dump_dest string /opt/ora9/admin/LQACNS1/udump
    SQL>
    SQL> show parameters background_dump_dest
    NAME TYPE VALUE
    background_dump_dest string /opt/ora9/admin/LQACNS1/bdump
    SQL>
    SQL>
    Joel Pérez

  • How to use Logical database in function module?

    I will create a function module in HR.
    but how to use Logical database  in function module ?  Logical database PNP always show screen.in function (RFC) code , it is a matter.

    You cannot attach the LDB to the main program of the function group.
    - So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
    - Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
    - Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
    Regards

  • How to determine logical database in a program?

    Hello guys!
    How to determine logical database in a program on Eclipse?
    I have not found any options:
    Thanks!

    Welcome to SDN
    Check the table RSOSFIELDMAP
    Assign points if useful
    Regards
    N Ganesh

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • How to compress pdf file size from 16mb to 4mb

    Can you please tell me how to compress a PDF email size of 16mb to 4mb?

    http://pdf-compressor.en.softonic.com/
    However PDF compression in general depending on format (pdf-A, pdf-X, etc etc) may not work or work well.

  • How to create a database in ORACLE 8i

    How to create a database in ORACLE 8i

    hello ...
    enter in
    http://www.oracle.com/pls/db102/portal.portal_db?selected=2 between demand and type in "create database"
    or read others docs ORACLE.
    AF

  • In ecatt - how to check at database level using ABAP

    Hi,
    How to check at database level using ABAP in Ecatt tool.
    say,for example I want to check a particular sales order is invoiced or not ,at the database level and if it is invoiced I have stop proceeding to invoicing of that sales order number.
    Could anybody suggest on this with an example?
    thanks.

    Hi,
    you can use the command GETTAB to access single db records.
    Full specified or partitial specified keys can be use at GETTAB. It will return always only one record, also if a couple could match your selection.
    For more advanced scenarios you can also use eCATTs Inline ABAP. In a block between the commands ABAP. ENDABAP. you can code ABAP statements, e.g. SELECT ... INTO TABLE ...
    eCATT script parameters of type 'V' defined in that script using ABAP/ENDABAP will be transfered into the ABAP block and back to script after ABAP perform.
    Best regards
    Jens

  • How to move SQL database from one location to another location i.e. from C' drive to D' drive

    Hi, How to move SQL database from one location to another location i.e. from C' drive to D' drive ? please share some link.
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    According to your description, my understanding is that you want to move databased from C drive to D drive.
    You can detach Database so that the files become independent, cut and paste the files from source to destination and attach again.
    There are two similar posts for your reference:
    http://mssqltalks.wordpress.com/2013/02/28/how-to-move-database-files-from-one-drive-to-another-or-from-one-location-to-another-in-sql-server/
    http://stackoverflow.com/questions/6584938/move-sql-server-2008-database-files-to-a-new-folder-location
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to recover the database when some of the archive log file get deleted.

    I am facing a problem with Oracle database, which is related to archivelogs.
    Our development database is running in archivelog mode, but we don't have backups scheduled and have no recovery catalog.
    When the database was in running condition, disk got full, so some archivelogs were deleted manually.
    After this they restarted the DB, and now DB is not coming up. Errors are as follows:
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1444383504 bytes
    Fixed Size 731920 bytes
    Variable Size 486539264 bytes
    Database Buffers 956301312 bytes
    Redo Buffers 811008 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    SQL> recover datafile '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    SQL> recover database using backup controlfile;
    ORA-00279: change 215548705 generated at 09/02/2008 17:06:10 needed for thread
    1
    ORA-00289: suggestion :
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00280: change 215548705 for thread 1 is in sequence #1107
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00308: cannot open archived log
    '/export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL>
    1. How to recover the database and bring it online
    Any help will be highly appreciated.
    With Regards
    Hemant Joshi
    Edited by: hem_Kec on Sep 7, 2008 9:07 AM

    Hi,
    Archive log files are the copies of redolog files.As redo log files are circularly overwritten,oracle generates archive log file of the corresponding redo logfiles being overwritten.So if you have a backup that dates back to 10 am in the morning and if your database creashed at 3 pm,you cannot use the redo log files alone as they have incomplete information.To completely recover the database upto 3 pm,you need archive log files generated between 10 am to 3 pm. In your case since you are missing one archive log file,you cannot perform complete recovery and hence would suffer data loss.

  • How to use query-database() function in transformation?

    Hi All,
    How to use query-database() function in transformation?
    It is giving four fields but if i write select query in sqlquery field it is saying select node is not found....
    plz help me out
    Regards
    Pavankumar
    Edited by: [email protected] on Jul 29, 2009 2:49 AM

    Hi,
    To answer your query:-
    http://abhishek-soablog.blogspot.com/2008/08/orclquery-database.html
    Cheers,
    Abhi...

  • How to create a database in 11g via a bat file

    Hi
    I have had a look around the internet, but I am unable to locate a good example of how to create a database/instance in 11g via a bat file. Can anyone advise me how to do this and what other things do I need to make it work via a bat file?
    Thanks

    user633278 wrote:
    Let me say this - I have taken over from someone who has left a development database which developers want to use asap in a poor state and no documentation. It is only when I started looking at the database that I discovered these problems. At the same time a developer wants a script which they he run to drop and recreate a database - it only needs to be minimal - small database, a few tables and stored procedures.OUI uses RMAN restore to produce starter DB & does not CREATE DATABASE from scratch.
    It takes hours to run CATPROC & such after 100% totally empty results from CREATE DATABASE command

  • How to create a database in Cloud

    Hello Experts,
    I have a trial license for cloud.oracle.com and wondering how to create a database in the cloud??
    Do NOT see an option to create db??
    Any help is appreciated..
    Thanks
    Rgds
    Natrajan

    You cannot create a database in Oracle Cloud. Visit the following to learn more about what you can do:
    https://cloud.oracle.com/mycloud/f?p=service:database:0:::::
    http://docs.oracle.com/cloud/CSDBU/intro.htm#CSDBU111

Maybe you are looking for

  • No longer any video visible, only green, pink and yellow blocks of color.

    I am using FCE 4.0 For some reason I no longer see any video in my Viewer window and my Canvas window. The video image is completely messed up All I see are seemingly random green, pink and yellow blocks of color. I do hear the audio the way it is su

  • List of wage types not processed in payroll

    Dear ABAPERS, I am developing a report which will show all wage types from infotypes 14 and 15 which are still not processed in payroll due to the reason that the payroll of some employees was not processed since they were locked in infotype 3. One s

  • Hey CL, Audigy 2ZS need beta drivers/Crackling problem fixed t

    :angry: Owners of Audigy 2ZS need beta driver and or fix for the crackling and popping audio problems to. My system is: ASUS A8V with latest official BIOS, ATI x850 Pro, WD SATA 250GHD, AMD A64 3700, 2x52 twinx Corsair matched memory, Antech true pow

  • Instance an Object which name is in a string

    hi, I've this problem: I must instance an Object, but the Object's type name is stored in a string. I could write a code similar to this: Object c = new "Car"(); Someone can help me?

  • Reg:where will the comments in tcode pa30 maintained

    Hi All, I have a requirement where I need to get the comments maintained for the info type 0019 in the tcode pa30. I have placed the cursor on the field and pressed F1 help to see the table in which these comments are stored.But these comments are ma