Startup Item for amavisd on Panther Server?

Hey Everyone--
I've got a client w/ a 10.3 Panther Server. Since there's no SpamAssassin, etc., installed on these, I took it as a way to improve their email experience and a personal challenge and learning process for myself to install it. I finally got it running after some issues w/ some of the CPAN stuff (mainly Net::DNS...ugh!), and it seems to be doing well. I mostly followed the directions here:
http://www.afp548.com/Articles/mail/postfix-sa.html
At the bottom it refers to "rolling your own" startup item for ClamAV and Amavis. Guess I'm ignorant, but I've never done this before. Is there an easy way to do this or can someone point me to an easy-to-follow tutorial? I know I can't use launchd, since it is earlier than 10.4... I don't want to have to manually start up clamav/amavis every time the server is rebooted!
Thanks,
Fred

You do not need a binary. Just the directory with the plist and script.
Create a directory:
/System/Library/StartupItems/amavisdstarter
Create a script called /System/Library/StartupItems/amavisdstarter/amavisdstarter with roughly the following contents (adjust to your needs):
#!/bin/sh
# amavisd startup item
. /etc/rc.common
StartService ()
/usr/bin/amavisd plusyour_parameters_as_you_usethem;
StopService ()
if [ -f /path/to/your/amavisd.pidfile ]; then
kill `cat /path/to/your/amavisd.pidfile` && rm -f /path/to/your/amavisd.pidfile
RETVAL=$?
[ $RETVAL -eq 0 ] && echo done. || echo failed.
else
echo not running.
fi
RestartService ()
StopService
sleep 1
StartService
RunService "$1"
Next create /System/Library/StartupItems/amavisdstarter/StartupParameters.plist:
Description = "amavisd content filter";
Provides = ("amavisd filter");
To manually start|stop amavisd issue:
/System/Library/StartupItems/amavisdstarter/amavisdstarter start|stop
It will start automatically on reboot.
HTH,
Alex
P.S. Not sure why the board mangles this. Instad of http... enclose "-f /path/to/your/amavisd.pidfile " and "$RETVAL -eq 0 " in square brackets
Message was edited by: pterobyte

Similar Messages

  • How to specify default desktop and/or startup items for EVERY user login?

    Hi
    My work iMac is

    +Oops! User error! Anyway, here's the rest of my message...+
    The iMac I use at the university where I work connects to Active Directory for authentication - there are no local user logins (apart from the admin account of course).
    I'd like to know how to set the default items for all user logins. Specifically, I'd like the system to automatically create an alias on the desktop to a shared folder for every new user login, or automatically open that folder in Finder when logged in.
    Though I'm the main user, if I'm not around other people may require access to the stuff I do for the multitude of projects I work on for a department of 30 people, and as everyone else uses a PC and only a few are Mac savvy, I'd like to make it as easy as possible for the poor dears to find the files. (We have a shared network drive where I can put some stuff but unfortunately our allocation is not very big!)
    Thanks.

  • Too many Startup Items?

    I've created 5 Startup Items for my custom installed and configured Services:
    +- Apache+
    +- Fetchmail+
    +- MySQLCOM+
    +- Squid+
    +- Tomcat+
    Most of the time when the Server starts up, every Service is running,
    but sometimes (especially Squid and/or Apache) does not run and must be started manually.
    Are 5 Startup Items too much for the Server (Mac Pro), or could there be a misconfiguration in the .plist Files in the Startup Items Folders?
    Kind regards,
    Chris

    Is this an install of 10.6 Server or a 10.6 client install you have modified to run the services you listed?
    My 10.6 servers load AFP, DHCP, DNS, iCal, iChat, Mail, MySQL, Open Directory, RADIUS, SMB, and Web as well as some other items.
    The five items you list would not be an issue.
    You may want to check your system console logs for any unusual entries on boot up that shows where one of your items was not loaded.

  • Different startup times for different accounts

    Recently I have had slow startup times on my MBP. I tried adding a test account just to test to the startup speed on that account. My main account starts up fine until after the OS X load screen, then the background will load up, but it takes approx. 1 minute for the dock and the menu bar to appear. On the test account, the startup is much quicker and there is not the same lag that there is for my main account. I have recently repaired permissions and the hard drive. I have also removed all startup items for my main account. Does anyone have any ideas as to what is causing these slow startup times?

    Try removing all those files and folders from your desktop and place them elsewhere in your home directory and see if that makes any difference. Otherwise, try deleting…
    ~/Library/Preferences/com.apple.finder.plist
    … and then immediately restart.

  • Mounting Server Volumes Via Startup Items

    I'm going crazy here trying to figure out what's going on with my wireless AirPort network!!!
    While trying to set up the first G4 iBook (10.4.2) from an Apple wireless cart I've discovered that I can't get a server volume to automatically mount at startup. I'm connecting to an AirPort Extreme base station. The iBook has no problem detecting and connecting to the base station and allowing an Internet connection and you can manually connect to a file server. But if I add a server volume to the Startup Items I can't get it to mount the volume at startup.
    Here's some stuff I've done to try to isolate the problem but nothing seems to point to a solution:
    - If I connect via Ethernet, it works everytime - so the issue is definately AirPort related.
    - Since I have 3 other independent AirPort networks (Extreme & Dual Ethernet) I tried connecting to them - no help.
    - After startup is finished I can connect manually (Go/Connect to Server).
    - Here's a real stumper... If I log out (not a reboot) & log back in - the volumes mount!!!
    - Up until now I had my personal eMac (10.3.9) connecting and mounting the same volumes via one of my previously mentioned AirPort networks with no problems. In trying to solve this problem I cleared out my Startup Items, Keychains, etc. - now I can't get it to work either.
    - I tried setting a new user in case it was some fouled up user setting - no help.
    - I've cleared out and set up Keychains & Startup Items numerous times - no help.
    - I disabled security - no help.
    So in my opinion I've ruled out the following by process of elimination:
    - System hardware - problem exists with eMac & iBook
    - OS - problem exists with 10.3.9 & 10.4.2
    - Base station - problem exists across differing base stations (Extreme & Dual Ethernet) & differing networks
    - Users - problem exists with new user
    - Security - problem exists with security disabled
    Here's the one thing that seems evident....
    The connection to any Airport network takes a momentary delay during startup - enough to cause to Startup Items (server volumes) not to mount. Since I can connect to the server manually shows that the AirPort connection is good. Logging out & then back in uses an AirPort connection that is already established and then will mount the Startup Items (server volumes).
    I've seen some Internet posts that suggest using scripts to somehow delay certain Startup Items from executing until an AirPort connection is established - I would rather avoid that mess. There's got to be a better solution! This seems to me like a very basic function that shouldn't take scripts or other such voodoo!
    I'm all out of ideas.....
    Dave

    Hi Dave,
    I recently had the same problem. I think a recent update messed up the way I was using applescript to mount drives. I would get messages while the script ran that would indicate things timing out while looking for drives. After reading through a lot of forums I found that this script worked for me:
    tell application "Finder"
         mount volume "afp://user:[email protected]/VolumeName"
    end tell
    This is for mounting a Mac server volume. I think you use smb:// for a win server.
    Let me know if this works for you.
    Herb

  • When I turn on my computer I get the following error messages: Insecure Startup Item disabled. "Library/StartupItems/HP IO" has not been started because it does not have the proper security settings. Also for HP Trap Monitor.  How do I fix these?

    When I turn on my computer I get the following error messages:
    Insecure Startup Item disabled. "Library/StartupItems/HP IO" has not been started because it does not have the proper security settings.
    Insecure Startup Item disabled. "Library/StartupItems/HP Trap Monitor" has not been started because it does not have the proper security settings.
    How do I fix these?

    Library/LaunchAgents: com.promethean.activmgr.plist
    Library/LaunchDaemons: com.microsoft.office.licensing.helper.plist, com.promethean.activhardwareservice.plist
    Library/StartupItems: HP IO folder - HP IO, Resources, StartupParameters.plist
    HP Trap Monitor folder - HP Trap Monitor, Resources, StartupParameters.plist
    These are the system extension errors
    "/System/Library/Extensions/AppleGraphicsControl.kext"
    "/System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/AppleMux Control.kext"
    "/System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/ApplePoli cyControl.kext"
    "/System/Library/Extensions/BJUSBLoad.kext"
    "/System/Library/Extensions/EPSONUSBPrintClass.kext"
    I do not know what any of these do or how to fix them.  I have run multiple disk permission repairs & disk repairs.  The startup & system extension errors continue to come up.
    I even followed the directions to move HP IO & HP Trap Monitor to the trash, run disk permissions repair, put back in folder, then restart - and still am getting error message.

  • Launchd, Startup Item crud - -what am I doing wrong?

    So, I have a startup item which works when I type
    sudo SystemStarter start MayaFlexlm
    Works great. Spawns flexlm, a daemon that listens for incoming connections for licensing.
    Trouble is, it does not automatically start on reboot. I always have to type that command to make it run. This is obviously a problem and I don't understand why SystemStarter doesn't do what it claims.
    So I said, good time to migrate to launchd. When I made a plist, however, and tried to run it with
    sudo launchctl load -w /Library/LaunchDaemons/com.rcook.mayaflexlm.plist
    I get nothing in the system log, no daemon running, and life ***. Can someone take a look at my code and tell me what I'm doing wrong?
    Here is the Startup Item which works:
    =====================================
    #!/bin/sh
    Maya license server daemon startup, hacked up by Rich Cook extenstion 3=9605
    . /etc/rc.common
    StartService ()
    if RUNNING=$(/usr/aw/COM/bin/lmstat -c /var/flexlm/aw_server.dat | grep -v 'not running' >/dev/null 2>&1); then
    ConsoleMessage "Starting Maya flexlm server."
    /usr/aw/COM/bin/aw_flexlm start
    else
    ConsoleMessage "Maya license server (flexlm) is already running."
    fi
    StopService ()
    ConsoleMessage "Stopping Maya flexlm server"
    /usr/aw/COM/bin/aw_flexlm stop
    RestartService ()
    StopService
    StartService
    RunService "$1"
    ======================================================
    Here is the launch daemon which makes me hate Apple Computers:
    ======================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>RunAtLoad</key>
    <true/>
    <key>Label</key>
    <string>rcook.mayaflexlm</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/aw/COM/bin/aw_flexlm</string>
    <string>start</string>
    </array>
    <key>ServiceDescription</key>
    <string>Maya FlexLM licensing for Maya and CityEngine</string>
    </dict>
    </plist>
    =====================================================

    wealthychef wrote:
    As one of our scaly unpleasant friends was hinting at, labels are not used for much by launchd; they have little operational significance, I believe.
    I've never seen one whose label was different that the file name (less .plist) so it's a good thing to change anyway. Perhaps labels are only used to identify them in a human-readable listing.
    I do get an error in the log, though, which I think means that the process exited immediately.
    That is an important plot point.
    Perhaps there launchd expects the daemon to keep running and kills it if it doesn't? I recall in the man page or somewhere they said the process cannot daemonize itself.
    That is correct.
    aw_flexlm starts the actual license software and then exits. This is probably my problem. But I didn't write this code -- all I want is for this thing to start up on launch. I will trust it won't crash.
    Is aw_flexlm a binary or a script?
    If it is a script, you should be able to look inside and find where it actually kicks off a program. Duplicate that line and turn it into an echo. Run it and now you'll have your actual executable and arguments.
    If aw_flexlm is a binary, you will have to look for documentation for it. There are sometimes options that will prevent some or all of the various daemonization actions.
    I did a quick check and it seems that aw_flexlm is indeed a script. You should be able to look around in it. The 'start' operation is easy. See what it does for the 'stop' operation. Launchd can't perform any complicated shutdown process. It expects the program to shutdown cleanly if killed. Not all programs will do that.

  • Launchd, Startup Item **** - -what am I doing wrong?

    So, I have a startup item which works when I type
    sudo SystemStarter start MayaFlexlm
    Works great. Spawns flexlm, a daemon that listens for incoming connections for licensing.
    Trouble is, it does not automatically start on reboot. I always have to type that command to make it run. This is obviously a problem and I don't understand why SystemStarter doesn't do what it claims.
    So I said, good time to migrate to launchd. When I made a plist, however, and tried to run it with
    sudo launchctl load -w /Library/LaunchDaemons/com.rcook.mayaflexlm.plist
    I get nothing in the system log, no daemon running, and life *****. Can someone take a look at my code and tell me what I'm doing wrong?
    Here is the Startup Item which works:
    =====================================
    #!/bin/sh
    # Maya license server daemon startup, hacked up by Rich Cook extenstion 3=9605
    . /etc/rc.common
    StartService ()
    if RUNNING=$(/usr/aw/COM/bin/lmstat -c /var/flexlm/aw_server.dat | grep -v 'not running' >/dev/null 2>&1); then
    ConsoleMessage "Starting Maya flexlm server."
    /usr/aw/COM/bin/aw_flexlm start
    else
    ConsoleMessage "Maya license server (flexlm) is already running."
    fi
    StopService ()
    ConsoleMessage "Stopping Maya flexlm server"
    /usr/aw/COM/bin/aw_flexlm stop
    RestartService ()
    StopService
    StartService
    RunService "$1"
    ======================================================
    Here is the launch daemon which makes me hate Apple Computers:
    ======================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>RunAtLoad</key>
    <true/>
    <key>Label</key>
    <string>rcook.mayaflexlm</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/aw/COM/bin/aw_flexlm</string>
    <string>start</string>
    </array>
    <key>ServiceDescription</key>
    <string>Maya FlexLM licensing for Maya and CityEngine</string>
    </dict>
    </plist>
    =====================================================

    Strongly suggest posting to the Unix forum under OS X Technologies where those mavens frolic.

  • Tiger (10.4.3) netboot image from Panther Server (10.3.9) odd permissions

    System config:
    Panther Server 10.3.9 on Xserve G5 running Netboot services
    New 2.3GHz Dualcore G5 client machines (require Tiger boot image)
    Created a 10.4.3 boot image on the server from a FireWire drive. All seems to work okay, except for strange issues with permissions when copying files from Users' home folders (e.g. Desktop, Documents, etc.). If copying a folder from Desktop to a server share, we get the error:
    "The operation cannot be completed because you do not have sufficient privileges for some of the items."
    If there are no subfolders, the contents copy anyway. If there are subfolders, the first subfolder is created but is empty and nothing else is copied.
    This does not occur if logged-in as the administrator user for the netboot image.

    Found the solution on afp548.com
    Same issue also affects non-netboot Tiger clients who are not local admins.
    fixed by running serveradmin command in Terminal on the server:
    sudo serveradmin settings afp:noNetworkUsers = yes
    Credit to MacTroll on afp548 forum

  • Rearranging the sequence of login startup items

    A couple of months ago, I bought a Mac Mini with Leopard. But I can't change the order of the startup items as I could with Panther. Is that just the way it is and I need to contact Apple to request that functionality be returned, or am I missing something? (I've tried Option-clicking and Command-clicking.)

    I disagree. I want the daemon for my wireless control device to launch first because, when it launches last, the device doesn't respond per my preferences.
    There's an obvious delay for applications later in the sequence.

  • Error when installing 9.0.1.4.0 patch set for the Oracle Database Server.

    Hi to all.
    Currently, i am trying to install patches for portal server.
    The server OS is Sun Solaris 8.
    We are using Oracle9iAS.
    Now, we are installing 9.0.1.4.0 patch set for the Oracle Database Server.
    We managed to install the patch, but have problem with the Post Install Action.
    We managed to run
    -ALTER SYSTEM ENABLE RESTRICTED SESSION;
    -@rdbms/admin/catpatch.sql
    -ALTER SYSTEM DISABLE RESTRICTED SESSION;
    -CONNECT / AS SYSDBA
    -update obj$ set status=5 where type#=29 and owner#!=0;
    -commit;
    But, when we come to the next command, which is to shutdown, it gives us like
    this..
    SQL> update obj$ set status=5 where type#=29 and owner#!=0;
    1402 rows updated.
    SQL> commit;
    Commit complete.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    We tried to startup the database..it gives us this error..
    SQL> startup
    ORA-01081: cannot start already-running ORACLE - shut it down first
    So, we tried to shutdown again..
    SQL> shutdown immediate
    ORA-01089: immediate shutdown in progress - no operations are permitted
    I been informed that this is maybe a Database problem related. Any ideas?
    Best Wishes,
    Rushdan Md Saad.

    Patchsets could be obtained (only) from http://metalink.oracle.com
    You need to have valid CSI for access.
    P.S: Sorry Werner, I didn't see you post.
    Message was edited by:
    Ivan Kartik

  • The master site control file does not contain a component item for SMS_STATUS_MANAGER.

    New to the System Center world. We are using a fresh install of Server 2012 R2 and System Center R2 with everything working until Server 2012 R2 Update 1 was installed. Now we are getting the following:
    Site type: Primary Site or CAS SMS_STATUS_MANAGER
    6/4/2014 1:35:21 PM 10996 (0x2AF4)
    Resolved the "Status Manager" inbox to "C:\Program Files\Microsoft Configuration Manager\inboxes\statmgr.box\statmsgs".
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Opened a change notification handle for directory "C:\Program Files\Microsoft Configuration Manager\inboxes\statmgr.box\statmsgs".
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Resolved the "Site Control Manager (Master Site Control File)" inbox to "C:\Program Files\Microsoft Configuration Manager\inboxes\sitectrl.box".
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Opened a change notification handle for directory "C:\Program Files\Microsoft Configuration Manager\inboxes\sitectrl.box".
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Parsed the master site control file, serial number 1551209029.
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    This site is the central site. SMS_STATUS_MANAGER
    6/4/2014 1:35:21 PM 10996 (0x2AF4)
    ERROR: The master site control file does not contain a component item for SMS_STATUS_MANAGER.
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Sleeping for 60 seconds... SMS_STATUS_MANAGER
    6/4/2014 1:35:21 PM 10996 (0x2AF4)
    Any thoughts on how to fix this? Seen a few references to a "site reset" for SCCM 2007 but wanted to make sure there wasn't anything else to try before heading down that road with 2012R2.

    A site reset can also be done in CM12 so it's worth a try.
    Torsten Meringer | http://www.mssccmfaq.de

  • Can see, but can't print to network printer in Panther Server

    I'm running Panther Server 10.3.9 in a vLAN with 16 OS 9 clients. They all
    print to 2 Xerox Phaser 6200 and 6250 network printers. I am unable to print
    to either one from a G4 running Server 10.3.9. I have limited desk space so a USB-attached printer, while
    more convenient, is impractical. When I run Classic from the Server, I can print to the Phasers.
    *> that means that OS X is seeing the printers. When you print in Classic, what*
    *> happens is that the Classic drivers (LaserWriter 8) hands off the print jobs*
    *> to the appropriate OS X drivers, which do the actual printing.*
    Although I'm using OS X Server, I don't have Print Services turned on. I never could get the OS 9 clients to print the way I wanted and I didn't want to have a single point of failure for 16 clients if the Fileserver (Panther Server) went down. So they print to the Phaser themselves using, as you said, Laserwriter 8.
    I can connect to administer them both with a browser.
    *> this definitely means that you can see the printers.*
    Yes. Everytime. I can reset them and anything else I want to do administering them with a browser (Safari).
    I have all the drivers I should need (new re-installs), but print jobs stop every time.
    *> Does this mean that the drivers are installed and are visible in Print & Fax?*
    Yes. I have both a 6200 and a 6250. Both drivers are visible.
    Is there a log file or some way I can see why these jobs fail?]
    *> There are logs, some of which are visible in CUPS using the browser.*
    >
    *> What error messages are you getting?*
    What is CUPS? I've heard of it, but don't know what it is or does. I think when I had ServerAdmin running a lot, there were CUPS files that were taking up hard drive space and I had to periodically delete them in Terminal.
    I'm not getting ANY error messages. It's like the print job just evaporates before it gets to the printer. There are never print jobs showing in the list under the Print Queue.
    FWIW, I can see the Phaser 6250 (but not the 6200) under Rendezvous printers.
    I've tried AppleTalk, IP printing, and Rendezvous. I can always see the printer, but can never print.
    AAAARRRRGGGGGHHHHH!
    Do you have any pearls of wisdom?
    Thanks
    mrcrna

    I was having the same problem, and basically it comes down to Epson not having driver support for networking. The solution, install better drivers!
    Go to: http://gimp-print.sourceforge.net/MacOSX.php and download the latest version of the drivers. Once you've installed them go to Print & Fax in System Preferences, delete the last print setup (the little minus sign), add the new one but importantly from the driver menu select the Gutenprint driver. That should solve the problem, certainly worked for me!

  • I cannot install Creative Suite 5.5 on my Windows 7 Professional. I keep getting error message: "Exit Code: 15 - Media DB sync failed". I have disabled UAC and Startup items and Services with no luck. Can you please help?

    I cannot install Creative Suite 5.5 on my Windows 7 Professional. I keep getting error message: "Exit Code: 15 - Media DB sync failed". I have disabled UAC and Startup items and Services with no luck. Can you please help?

    I am sorry Erickkasner but there is no longer direct support provided for Creative Suite 5.5 installation issues.
    You are welcome to post any specific errors you are able to discover within your installation log to this discussion.  Since you are using Windows then Exit Code 15 could mean one of the following:
    Installer database is corrupted
    Update pending to your operating system
    Improper permissions set for the Media.db
    The installation log file should provide additional insight into the exact error you are experiencing.  Please make sure to use the find command to look for the words 'ERROR' and 'FATAL' to locate the relevant error messages.

  • Java startup property for Adobe document services

    Hi guyz, since a while i'm facing a random issue when i generate pdf. All the configuration has been done, but when look at in configtool i see a missing parameter:
    -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine. services.ts.jts.ots.PortableInterceptor.JTSInitializer
    Because it's in the recommendation parameter guide i guess it should be in, but someone can tell what those parameter deals about ?

    Hi,
    Yes, this service is mandatory if you want to use Adobe document service. It should be set for all server nodes in the config tool.  This is Java startup property for Adobe document services. Without this parameter adobe service will not start as a result you will not be able to open adobe documents.
    Thanks
    Sunny

Maybe you are looking for

  • Invoce is allowed more than purchase order

    Dear Experts, In my case,  in few scnarios we are creating the purchase order but not creating the GR. We are doing MIRO directly with reference  to purchase order. In tihs scenario, if PO quanity is 100, sap allows me to post the invoice with quanit

  • Multiple Songs in Playlist

    Managed to add a playlist to the iDVD main menu, but it only play the first 2 songs of the iTune playlist. The playlist contains 6 songs.

  • Help!! Illustrator won't open

    Hi Wondering if someone could please help me, I have just downloaded and installed Illustrater CS5 Trail Version I then go to open it and click 'start trail' then asks for my Adobe ID - so i enter that and click next It then comes up and says 'could

  • CS5 will not remember print settings

    Have upgraded from cs3 and cannot get cs5 to remember my print settings. In cs3 when I open a file to print it, the print driver automatically uses all the settings specified the last time I printed and saved the file. In cs5 the driver uses the sett

  • How to have a sequence start with specific number in mapping

    Hi, I can not find a way in the mapping to specify the "start with" attribute for sequence. Currently I have to execute this from sqlplus; select max(id) from tableA, then create sequence start with max(id)+1. I would like to integrate this step into