Create a database in C


 
Thread Tools Search this Thread
Top Forums Programming Create a database in C
# 15  
Old 10-01-2011
Well thank you for your help.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk parsing file to create a database

Hi Guys, I have a list a hotels stored in many different text files. This list is kept in the following format: 20/03 Hotel: The Bear Hotel Honey Street Woodstock UK Tel:+44-xxxxxx Rate: 100 21/03 Hotel: The Bush Hotel Nice Street Farnham (4 Replies)
Discussion started by: freddie50
4 Replies

2. AIX

Need a graphical interface on AIX server to create database

Hello, Please suggest me the ways how to get graphical interface on AIX server.I need to create oracle database for which I need graphical access. Best regards, Vishal (4 Replies)
Discussion started by: Vishal_dba
4 Replies

3. UNIX for Dummies Questions & Answers

Create Alert for Database Problem

Hi all, I new to scripting and i need to know how to put the script when the capture goes down in the feeds database.. I tried with this "ps -ef | grep asn" command and it displaying the capture,apply time. But the alert we are receving now is replication is failed . So i need to develop the... (1 Reply)
Discussion started by: g.nanthagopal
1 Replies

4. Shell Programming and Scripting

Help with script to create users from database query

#!/bin/bash user=`mysql userList -uuserlist -puserlistpassword -s -N -e "SELECT userName FROM users WHERE activated='n'"` for i in $user; do useradd "$i" -m doneThis is what I have done so far. But obviously it still does not work. I'm trying to create users based on information stored in a... (5 Replies)
Discussion started by: bucketuk
5 Replies

5. UNIX and Linux Applications

Really simple shell script to create oracle database

Hello , I am new in this forum and need your help as I am totally confused :confused: I read a lot of threads and tried to search a lot but did not get the exact answer to my question. I just want a simple (content wise may be long) shell script to create oracle database. In detail:... (5 Replies)
Discussion started by: rahoolm
5 Replies

6. Programming

Creating a bash script that create/open database

Hi. I have two text files(tables) which include some information and I want to make some query codes using them. First of all, I want to create bash script that read this two tables, create/open database and insert data from files into database. #!/bin/bash while read line; do ... (1 Reply)
Discussion started by: rlaxodus
1 Replies

7. Shell Programming and Scripting

Create database using Backup file

Hi, I have backup file of database in my server. I want to create a that database in the same Mysql Server. How can I do that? Please send the steps to create the database using backup file? Thanks a lot, (1 Reply)
Discussion started by: aish11
1 Replies

8. Solaris

Can't create database after Oracle Database installation

I installed Oracle 10 software on Solaris 11 Express, everything was fine execpt I can't create database using dbca.rsp file. I populated file with following options. OPERATION_TYPE = "createDatabase" GDBNAME = "solaris_user.domain.com" SID = "solaris_user" TEMPLATENAME = "General... (0 Replies)
Discussion started by: solaris_user
0 Replies

9. UNIX for Advanced & Expert Users

create database on unix

how can i create database on unix from command line (without using DBCA) (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies

10. UNIX for Advanced & Expert Users

trying to create a virtual database..

:cool: I like Vibhory2 like the idea of tapping into the kernel.. although not as indepth as he/she... i want to create a virtual databse of a few ma chines with connectivity and defiinte knowledge to create it.. I havebeen working on the project for a year now.. ! before unix (1 year exactly) i... (20 Replies)
Discussion started by: moxxx68
20 Replies
Login or Register to Ask a Question
ost::MemPager(3)					     Library Functions Manual						  ost::MemPager(3)

NAME
ost::MemPager - The memory pager is used to allocate cumulative memory pages for storing object specific 'persistant' data that is presumed to persist during the life of a given derived object. SYNOPSIS
#include <misc.h> Inherited by ost::Keydata [protected], ost::SharedMemPager, and ost::StackPager [protected]. Classes struct _page Public Member Functions int getPages (void) Return the total number of pages that have been allocated for this memory pool. Protected Member Functions virtual void * first (size_t size) Allocate first workspace from paged memory. virtual void * alloc (size_t size) Allocate memory from either the currently active page, or allocate a new page for the object. char * first (char *str) Allocate a string from the memory pager pool and copy the string into it's new memory area. char * alloc (const char *str) Allocate a string from the memory pager pool and copy the string inti it's new memory area. MemPager (size_t pagesize=4096) Create a paged memory pool for cumulative storage. void purge (void) purge the current memory pool. void clean (void) Clean for memory cleanup before exiting. virtual ~MemPager () Delete the memory pool and all allocated memory. Friends class String class MemPagerObject Detailed Description The memory pager is used to allocate cumulative memory pages for storing object specific 'persistant' data that is presumed to persist during the life of a given derived object. When the object is destroyed, all accumulated data is automatically purged. There are a number of odd and specialized utility classes found in Common C++. The most common of these is the 'MemPager' class. This is basically a class to enable page-grouped 'cumulative' memory allocation; all accumulated allocations are dropped during the destructor. This class has found it's way in a lot of other utility classes in Common C++. Author: David Sugar dyfet@ostel.com Accumulative object memory allocator. Constructor &; Destructor Documentation ost::MemPager::MemPager (size_tpagesize = 4096) [protected] Create a paged memory pool for cumulative storage. This pool allocates memory in fixed 'pagesize' chunks. Ideal performance is achived when the pool size matches the system page size. This pool can only exist in derived objects. Parameters: pagesize page size to allocate chunks. virtual ost::MemPager::~MemPager () [protected], [virtual] Delete the memory pool and all allocated memory. Member Function Documentation virtual void* ost::MemPager::alloc (size_tsize) [protected], [virtual] Allocate memory from either the currently active page, or allocate a new page for the object. Parameters: size size of memory to allocate. Returns: pointer to allocated memory. Reimplemented in ost::SharedMemPager. char* ost::MemPager::alloc (const char *str) [protected] Allocate a string from the memory pager pool and copy the string inti it's new memory area. This checks only the last active page for available space before allocating a new page. Parameters: str string to allocate and copy into paged memory pool. Returns: copy of string from allocated memory. void ost::MemPager::clean (void) [protected] Clean for memory cleanup before exiting. virtual void* ost::MemPager::first (size_tsize) [protected], [virtual] Allocate first workspace from paged memory. This method scans all currently allocated blocks for available space before adding new pages and hence is both slower and more efficient. Parameters: size size of memory to allocate. Returns: pointer to allocated memory. Reimplemented in ost::SharedMemPager. char* ost::MemPager::first (char *str) [protected] Allocate a string from the memory pager pool and copy the string into it's new memory area. This method allocates memory by first searching for an available page, and then allocating a new page if no space is found. Parameters: str string to allocate and copy into paged memory pool. Returns: copy of string from allocated memory. int ost::MemPager::getPages (void) [inline] Return the total number of pages that have been allocated for this memory pool. Returns: number of pages allocated. void ost::MemPager::purge (void) [protected] purge the current memory pool. Reimplemented in ost::SharedMemPager, and ost::StackPager. Friends And Related Function Documentation friend class MemPagerObject [friend] friend class String [friend] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::MemPager(3)