How to migrate WindowsAPI GetDiskFreeSpace to Solaris

I don't know how to migrate windowsApi GetDiskFreeSpace to Solaris. Is there one SolarisAPI which can implement the function of getdiskfreespace ?
If there is , please tell me the name of the corresponding
SolarisAPI. If there isn't, please tell me tell how to migrate the WindowsAPI . thanks a lot!
The WindowsAPI GetDiskFreeSpace is descripted as following :
GetDiskFreeSpace
The GetDiskFreeSpace function retrieves information about the specified disk, including the amount of free space on the disk.
This function has been superseded by the GetDiskFreeSpaceEx function. New Win32-based applications should use GetDiskFreeSpaceEx.
BOOL GetDiskFreeSpace(
LPCTSTR lpRootPathName, // pointer to root path
LPDWORD lpSectorsPerCluster, // pointer to sectors per cluster
LPDWORD lpBytesPerSector, // pointer to bytes per sector
LPDWORD lpNumberOfFreeClusters, // pointer to number of free clusters
LPDWORD lpTotalNumberOfClusters // pointer to total number of clusters

I am sorry to say that the WindowsAPI is not there !
In fact, I only want to know how to get the free disk space in Solarisb. I have found the two SolarisAPI
stafvfs, fstatvfs. But i am not sure whether the two APIs can get the free disk space . Could anyone tell me ?
Or tell me where can i find the Solaris file system format ? thanks a lot !

Similar Messages

  • How to migrate Solaris 9 running Oracle DB 9i into Solaris 9 brand zone

    Dear all,
    I am new in Solaris 10 zone. At this moment, my boss wants me to propose how to migrate legacy physical Solaris 9 server running Oracle 9i into container running in Solaris 10 T series machine.
    I have down DB to perform full flar image. And I successfully install this flar image into Solaris 9 container.
    But , oracle mount point such as /u01, /archivelog,... My DB is very simple, file system only, not raw partition...
    May I need to create new DB mountpoints for this container?
    And may I need to perform ufsdump and ufsrestore for these mount point?
    Hope any one of you let me know.
    Thanks,
    Mike

    Thank you!
    Hopefully you also know the solution for my next question to morrow:
    <tt>NullPointerException at oracle.jbo.uicli.jui.JULovButtonBinding.actionPerformed(JULovButtonBinding.java:767)</tt>
    ;o)
    bye
    TPD

  • How to migrate netscape messaging 4.15 to iplanet messaging 5.2 on solaris

    How to migrate netscape messaging 4.15 to iplanet messaging 5.2 on solaris. Any guide is available ?

    Hi,
    Below given is the Migration guide from iPlanet. Follow the instructions given carefully. Also, you would like to check out the Release notes for any known gotchas.
    http://docs.sun.com/source/816-6017-10/single.htm#44598
    Regards,
    Preethy

  • Complexities of Migrating Oracle 10g from Solaris to HP-UX Itanium

    Can anyone share their experiences with regards to migrating Oracle 10g from Solaris on a Sun platform to HP-UX 11i v3 (Itanium) on HP Integrity servers. We are trying to consider all the risks associated with such a move. How much time delay did you experience in resolving unexpected issues along the way? How complex is the process? If you had to do it all over again, would you?
    In addtion, we will also be migrating Oracle eBusiness Suite 11i (11.5.10.2).
    We appreciate your helpful feedback.
    Thank you.

    Here is more information:
    - the database size is currently about 500GB
    - our ASP allows us to be down as much as we want however the company's own needs can only allow a downtime window of two days (over the weekend)
    - i presume further that RMAN might be an option to use to backup the database and instance to some transportable media
    - it would take about four days to get that media from the ASP to our facility so durign that time the instance at the ASP would have to be used
    - after we get the backup media and load everything into our in-house site, our last step would be to find a way to migrate all changes over the WAN. I am told that unless the platforms are the same on both ends, mirroring will be extremely difficult or impossible. If we have a platform that is different from the ASP platform, then the migration of all changes will require conversion and other mechanisms. I am told that HP-UX has so much complexities that this will be a daunting task to accomplish.
    Do you have any opinions and recommnedations?

  • How to migrate DB from single node 10gR2 to RAC 11gR2 on diff platform?

    How to migrate DB from single node 10gR2 to RAC 11gR2 on different platform with possible minimum downtime? We have a situation of upgrade/migrate oracle 10gR2 single instance DB to 2-node RAC 11gR. The source OS is Solaris 10 on SPARC and the target OS is Linux (the target servers could be changed to Solaris 11 x86 if needed). What is the best solution on that?
    Thanks,

    Technically, can do the following for upgrading and migration?
    1. Create 11gR2 oracle home on the same server and upgrade the database from 10gR2 to 11gR2 by running conversion (2 hour down time?)
    2. Set up Heterogeneous Primary and Physical Standbys by RMAN. The standby is the RAC with ASM. No need down time. (from Solaris Space to Linux - this may be a problem)
    3. At the cutoff time, activate the standby DB from the RAC ASM.
    If feasible, do we have some detail guild line for each step?

  • Migration of oracle8i (Sun Solaris) to oracle10g (HP-UX).

    Hello,
    I just did a migration of oracle8i (Sun Solaris) to oracle10g (HP-UX).
    The problem is that the roles given in 8i are not reflected in 10g.
    e.g: in 8i user x has roles 1, 2, 3
    The same user x in 10g has roles 1, 2, 3, 4, 5
    The roles are not DB roles (e.g dba, connect, resource, etc) but user defined roles.
    Thank you,
    Dirish

    1. How did you migrate ?
    2. What are the roles 1,2,3,4,5... ?
    3. What release is your 8i ?
    4. What release is your 10g ?
    But what is your question ? Since we have no clue at all of what you did, you have no chance to get proper help.
    Nicolas.

  • Migrate existing infracture from Solaries to linux plateform

    Hi,
    We want to migrate existing infracture from Solaries to linux plateform.
    Please suggest me the way.
    Our Current Infracture:-
    Serve 1 (on Sun Sparc):-
    indianDBA-1 (Contain:- Infrastructure database (Meta) 10.1.0.4.2 10G R1, Infrastructure middle tier 10G R2)
    Server 2 (on Sun Sparc):-
    indianDBA-2 (Contain:- Application Server middle tier 10G R2 10.1.2.0.2)
    Server 3 (on Sun Sparc)
    indianDBA-3 (Contain:- contains Discoverer report, EUL schema) 11G R2
    Thanks
    Anup

    Hi,
    You can use export/import or transportable tablespaces to migrate the database.
    10gR2 Transportable Tablespaces Certified for EBS 11i
    http://blogs.oracle.com/stevenChan/2010/04/10gr2_xtts_ebs11i.html
    Migrating E-Business Suite Release 11i Databases Between Platforms
    http://blogs.oracle.com/stevenChan/2008/08/migrating_ebusiness_suite_databases_between_platfo.html
    Note: 362205.1 - 10g Release 2 Export/Import Process for Oracle Applications Release 11i
    How long the task would take? Depends on the hardware resources you have. The best practice is to try this on a test instance first.
    The application should work as expected once the task is completed.
    Thanks,
    Hussein

  • How to migrate rtf Templates in XML Publisher ?

    Hi All,
    I want the script so that i can download and upload the RTF files directly from my development instance to my production instance.
    For this i have come across 3 links
    How to migrate rtf Templates in XML Publisher?
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdoig.pdf
    unable to migrate physical files using XDO Loader utility
    and from here i am running this command from /home/aryan directory
    java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD -DB_USERNAME apps -DB_PASSWORD fnd -JDBC_CONNECTION sharp.apps.com:1522:tst1 -LOB_TYPE TEMPLATE -APPS_SHORT_NAME CUSTOM -LOB_CODE ZEMP -LANGUAGE en -TERRITORY US
    but it is giving me error "ksh: java: not found". could anyone can tell me how and from where i have to run the download and upload command
    Thanks
    Aryan

    Hi Hussein,
    I tried with applmgr also and still for java -version it is giving me error ksh Java not found
    and for which java it is giving me error no java found in different directories path.
    Thanks
    Aryan

  • OIM11gR2 - How to migrate an Application Instance Form

    Hello,
    I'm trying to migrate an Application Instance Form from my Dev env to my QA env.
    My target system is SAP
    I performed the following steps in Dev:
    1. Installed and configured the SAP Connector (no problem here)
    2. Created a sandbox
    3. Created an Application Instance
    4. Created the Application Instance Form
    5. Ran a target reconciliation to confirm everything is working properly
    6. Exported the sandbox
    7. Published the sandbox
    8. Via Deployment Manager I exported all objects related to SAP (Resource object, Process Forms, Lookups etc.)
    In QA I did:
    9. Installed and configured the SAP Connector (no problem here)
    10. Via Deployment Manager I imported the objects related to SAP
    11. Imported the sandbox
    Problem:
    To my surprise, the Application Instance does not have a Form in the QA env.
    I had to create it manually by performing the following:
    12. Create a sandbox
    13. Open the Application Instance definition
    14. Click on create (to create a form)
    15. Entered the same name I used in my Dev environment
    16. Received an error message saying that the form already exists
    17. Entered a different name for the Form
    18. Saved
    19. Exported the sandbox (to import in Prd)
    20. Published the sandbox
    21. Ran a target reconciliation to confirm everything is working properly
    I tried to reproduce the problem with another (test) destination environment because I don't want to have the same problem when migrating to Prd.
    I repeated the steps 9,10,11 except that I imported the sandbox exported from QA (step 19) instead.
    The same problem: Application Instance definition has no Form attached to it in my test destination environment.
    If I try to create the form with the same name, it gives an error message saying it is already there.
    Is my procedure wrong?
    Is there an official procedure explaining how to migrate only Application Instance Form from one env to another?
    My env:
    OS: Windows 2008 R2 SP1
    OIM: 11gR2 BP7
    SAP connector: 9.1.2.2.0
    Thanks,
    Adr

    This is a bug: Bug:16027176
    Check the [Article ID 1515225.1] which proposes a workaround that might be useful in your case (it was not in mine).
    In short the workaround is:
    The following order should be observed to export :
    - IT Resource & Application instance in one xml
    - Request DataSet in another xml
    - SysAdmin Sandbox (the one defined while creating the Application Instance and the Form)
    - Identity URL Sandbox (defined while customizing the fields on the Form, in the Catalogue page)
    Adr

  • How to migrate ADE content to a new computer

    At some point, everybody needs to upgrade to a new computer.
    After reading a great many postings in this forum, it seems obvious to me that many of us would greatly benefit from some specific guidance on how to install Adobe Digital Editions and Sony Reader Library Software (and reader device) or some other e-book application on the new computer, and then move the previously purchased e-book content from the old to new computer in a way that will ensure that the e-books can still be read.
    Specifically, I think that some/better guidance needs to be provided on the sequence of steps that must be taken, and the options that should (or should not) be selected to accomplish these actions.  For example, does ADE software get installed on the new PC first, or after installing the Sony reader library (or other reader) software?  Should we authorize the new computer?  How about the portable reader devices (Sony P600), do we leave the content on these or will we need to reload it?  Is there a way to ensure the Adobe ID for both SW applications (ADE & Sony Library) are the same so we don't get new or different ID assigned? Will a reader device (which may already contain ebook content) be recognized and automatically resynch with the new computer? and can it move its content from reader to PC, or must the purchased content first be loaded onto the new PC from the old PC, and then be moved (again) to the reader device?
    I can't help but think that answers to these (and many other) questions could be far more easily communicated by proactively publishing some basic (if general) procedures for accomplishing common actions like these, rather than repeatedly providing help to each of us after we have already done the wrong thing.  While technical help is always greatly appreciated, and it may be easier to address a specific problem, it is more effective to provide information that will help us avoid the problem in the first place, and thus reduce the case load and improve response time.
    If I were sufficiently knowledgable to be capable of providing this general guidance myself, I would certainly do so, but count me among the ignorant masses that are simply trying to buy, download, and read their e-books without rendering all their purchased content inaccesible.  I certainly wouldn't want to inadvertently provide misinformation that might cause even greater problems.
    In short, I think that all of us (forum readers) would greatly like to have some simple instructions presented on what to do, (or not to do), to initially set up our computers and to accomplish other basic functions once this has been done.
    Won't somebody with the needed expertise undertake to provide some instructions in this forum?
    Thanks (in advance) for you support.
    P.S. - Keeping purchased content on original (old) and new computers is NOT an option.

    How to migrate ADE from one computer to another:
    1.)  Ensure that your current content is authorized to an AdobeID
         In ADE select "Authorize Computer" from the "Library" menu  if it shows you your AdobeID you are good to go.
    2.) Copy files  - the files are the .epub and .pdf files in your Digital Editions folder in your Documents directory.   Alternatively you can simply copy the whole  Digital Editions folder.  If you copy the whole folder make sure you place it into your Documents directory.
    Note:  on Windows the folder names are "My Digital Editions" and "My Documents"
    3.) Install ADE on the new computer, make sure you enter in the AdobeID from step 1 and the password when asked
    The AdobeID that registred and shown (in step1) above is the same for ADE as it is for Sony EBL (the Sony desktop software) - they both pull from the same place.
    Unfortunately I don't know the steps for migrating Sony EBL.
    For the content on the reader device, you can leave them alone.

  • How to migrate mails from Google Apps to MS Exchange Online IMAP (Getting error)

    Any tips on How to migrate mails from Google Apps to MSOL? What is required? When I am trying to migrate using IMAP but getting fpollowing error
    =======================
    Summary: 1 item(s). 0 succeeded, 1 failed.
    Elapsed time: 00:00:11
    [email protected]
    Failed
    Error:
    Failed to log on successfully for the following reason:
    Server rejected Basic login with following message : * CAPABILITY IMAP4rev1 UNSELECT LITERAL+ IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE.
    Exchange Management Shell command attempted:
    'Microsoft.Exchange.Transporter.Provider.PopImap.InternetMailboxMeta' | Move-XsIMAPMailboxToExchangeOnline -AllowUnsecureConnection $false -TargetCredential 'System.Management.Automation.PSCredential' -MaxThreadCount '10' -Quiet
    Elapsed Time: 00:00:11
    ======================
    Any help will be much appreciated.
    Regards
    Sunil DK

    I just finished migrating a client from Google Apps to Microsoft Exchange Online using the IMAP option in the Microsoft Online Services Migration Tool.  
    I added the mailboxes by creating a CSV file [i.e. GoogleApps(Gmail)_Mailboxes.csv] in the following format:
    SourceIdentity,SourceServer,SourceLoginID,SourcePassword,TargetIdentity
    [email protected],imap.gmail.com,[email protected],P@ssword1,[email protected]
    [email protected],imap.gmail.com,[email protected],P@ssword2,[email protected]
    [email protected],imap.gmail.com,[email protected],P@ssword3,[email protected]
    Then I created a custom folder map XML file [i.e. GoogleApps(Gmail)_FolderMap.xml] to map the Google Apps (Gmail) labels to the appropriate Exchange (Outlook) mailbox folders and create those that didn't exist (i.e. Important, Starred, Follow up,
    Misc, Priority) as sub-folders under the Inbox:
    <?xml version="1.0" encoding="utf-8"?>
    <FolderMappings xmlns="http://tempuri.org/FolderMap.xsd">
    <!-- This xml contains the mapping of foldername in source server to folders in target server -->
    <!--
    "path" is the name of the folder in source server
    "Name" is the name of the folder to be mapped into target server
    "SpecialFolder" is the name of the special folder to be mapped into
    target server (Name will be ignored) valid values are :
    Inbox
    Calendar
    Tasks
    Sent Items
    Deleted Items
    Drafts
    Junk E-mail
    Contacts
    Outbox
    Journal
    Notes
    "Description" Description of the folder
    "ExcludeFolder" indicates folders to exclude. Valid values are:
    true (case sensitive)
    false (case sensitive)
    0
    1
    -->
    <!-- Default Mapping Section -->
    <Folder path = "INBOX">
    <Property SpecialFolder = "Inbox"/>
    </Folder>
    <Folder path = "New Mail">
    <Property SpecialFolder = "Inbox"/>
    </Folder>
    <Folder path = "[Root]">
    <Property SpecialFolder = "Inbox"/>
    </Folder>
    <Folder path = "">
    <Property SpecialFolder = "Inbox"/>
    </Folder>
    <Folder path = "Calendar">
    <Property SpecialFolder = "Calendar"/>
    </Folder>
    <Folder path = "Tasks">
    <Property Name = "Migration items/Tasks"/>
    </Folder>
    <Folder path = "Sent Items">
    <Property SpecialFolder = "Sent Items"/>
    </Folder>
    <Folder path = "Sent Mail">
    <Property SpecialFolder = "Sent Items"/>
    </Folder>
    <Folder path = "Sent">
    <Property SpecialFolder = "Sent Items"/>
    </Folder>
    <Folder path = "Deleted Items">
    <Property SpecialFolder = "Deleted Items"/>
    </Folder>
    <Folder path = "Trash">
    <Property SpecialFolder = "Deleted Items"/>
    </Folder>
    <Folder path = "Drafts">
    <Property SpecialFolder = "Drafts"/>
    </Folder>
    <Folder path = "Draft">
    <Property SpecialFolder = "Drafts"/>
    </Folder>
    <Folder path = "Junk E-mail">
    <Property SpecialFolder = "Junk E-mail"/>
    </Folder>
    <Folder path = "Spam">
    <Property SpecialFolder = "Junk E-mail"/>
    </Folder>
    <Folder path = "Contacts">
    <Property Name = "Migration Items/Contacts"/>
    </Folder>
    <Folder path = "Outbox">
    <Property SpecialFolder = "Outbox"/>
    </Folder>
    <Folder path = "Journal">
    <Property SpecialFolder = "Journal"/>
    </Folder>
    <Folder path = "Notes">
    <Property SpecialFolder = "Notes"/>
    </Folder>
    <Folder path = "Public Folders">
    <Property ExcludeFolder = "true"/>
    </Folder>
    <!-- Google Apps (Gmail) Specific Mapping Section -->
    <Folder path = "[Gmail]/All Mail">
    <Property ExcludeFolder = "true"/>
    </Folder>
    <Folder path = "All Mail">
    <Property ExcludeFolder = "true"/>
    </Folder>
    <Folder path = "[Gmail]/Drafts">
    <Property SpecialFolder = "Drafts"/>
    </Folder>
    <Folder path = "[Gmail]/Important">
    <Property Name = "Inbox/Important"/>
    </Folder>
    <Folder path = "[Gmail]/Sent Mail">
    <Property SpecialFolder = "Sent Items"/>
    </Folder>
    <Folder path = "[Gmail]/Spam">
    <Property SpecialFolder = "Junk E-mail"/>
    </Folder>
    <Folder path = "[Gmail]/Starred">
    <Property Name = "Inbox/Starred"/>
    </Folder>
    <Folder path = "[Gmail]/Trash">
    <Property SpecialFolder = "Deleted Items"/>
    </Folder>
    <!-- Custom Mapping Section -->
    <Folder path = "Follow up">
    <Property Name = "Inbox/Follow up"/>
    </Folder>
    <Folder path = "Misc">
    <Property Name = "Inbox/Misc"/>
    </Folder>
    <Folder path = "Priority">
    <Property Name = "Inbox/Priority"/>
    </Folder>
    </FolderMappings>
    Additionally, I had to tell the Internet E-mail Mailbox Migration Wizard to use the "Individual Account Credentials" option since I was able to specify each account password in the CSV file when adding the mailboxes to Microsoft Online Services Migration
    Tools console.
    Just to note, the users had to manually export their contacts to a CSV file and calendars to iCal (ICS) files in order to import those items into Outlook.
    I hope this will benefit others since Microsoft doesn't seem to have a custom, specifically defined migration strategy for this scenario.  With Google Apps being in direct competition with BPOS/Office365, I assumed that Microsoft would have a simple
    strategy using something like ActiveSync to facilitate the migration of email, contacts, calendar entries, etc.  Hopefully we'll see something along those lines become available in a future release of the migration tools.
    --Jon Payne

  • How to migrate Mail & Contacts from backup disk of old PPC iMac (10.3.9) to new iMac (10.8.1)?

    How to migrate Mail & Contacts from backup disk of old PPC iMac (10.3.9) to new iMac (10.8.1)? 
    The Firewire disk is connected and have been able to copy across document folders etc, but Migration Assistant doesn't find the disk so that method no good.  Any help appreciated.

    Thanks, that looks very comprehensive.  Wish I'd seen it before completing Set-Up Assistant initially!  Will follow his instructions and report back.

  • How to migrate Oracle 9i(32 bit) to oracle 10g(64 bit) DB with ASM

    How to migrate Oracle 9i(32 bit) to oracle 10g(64 bit) DB with ASM on SAME platform RHEL4.0
    Scenario My case:
    1) DB size 400G.
    2) Minimum downtime.
    3) oracle 9i(9.2.0.4) source DB.
    4) oracle 10g(10.2.0.3) target DB with ASM.
    5) Source DB (HOST A) and target DB (HOST B) Machine.
    Thanks
    Ashutosh

    I think Werner is suggesting you ask your question in the appropriate forum.
    Go up 2 levels (to Community Discussion Forum) and look for the Database category. It's not that difficult to find, and you will be discussing the question with people who actually care about that kind of question.
    The people who read and interact in this forum do so to discuss Documentation questions. Specifically questions about how to improve the documentaiton.

  • How to migrate iTunes Library from an external hard drive to a new Mac Book Pro?

    How to migrate iTunes and iPhoto librarys from an external hard drive to a MacBook Pro?

    With iTunes:
    iTunes: How to move your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    do not confuse moving your whole folder and library with moving just media files as in
    iTunes for Mac: Moving your iTunes Media folder - http://support.apple.com/kb/HT1449
    Quick answer if you let iTunes manage your music:  Copy the whole iTunes folder and all its subfolders and files intact to Home > Music on your computer. It will replace the one that may already be there and anything you have in it will be lost -- you could give the folder a different name just in case, and delete it yourself later.  Unplug the external and start iTunes.

  • How to migrate installment plan with open items

    Hi all,
    I am trying to figure out how to migrate an installment plan, when my legacy system does not tie my open items directly to my installment plans.  And the amounts in my open items table may not add up to the exact amount of the installment plan. 
    So for a simple example, I have $10 left on an installment plan that was created 6 months ago. 
    Since the creation of the plan obviously more charges and payments have been posted to this account, clearing previously open items and creating new ones.
    Presently, I have only 2 open items remaining, one for $6 and one for $7.
    So I have "enough" open items ($13 worth) to post the $10 installment plan, but not an exact match.
    The way I read the migration documentation on this, I thought I could use a OPUPZ field (Subitem for a Partial Clearing in Document) to signify that I want to partially clear that $7 charge.  Apparently I misinterpreted that.
    So my question is, is there a way to migrate this installment plan with this set of open items?
    Or is my only option to alter the payment plan to the open items, and say that there is $13 remaining on the plan?
    Thanks.

    C N,
    The principal Idea is to migrate either
    - the original amounts, the installment plan and last the latest payments (you migrate payment history)
    - or to migrate the still open amount as one or more open items and subsequently an installment based on that amount.
    Kind regards,
    Fritz

Maybe you are looking for