1Z0-031.3 - 1. Parameters & Parameter files (PFILE & SPFILE)

Oracle参数文件详解
本文详细介绍了Oracle数据库中两种参数文件的使用方式及区别,包括文本形式的PFILE(initSID.ora)和二进制形式的SPFILE(spfileSID.ora)。文章解释了如何创建这两种文件、它们的内容构成以及如何修改参数。

kinds of parameters:

--- Explicit: Having an entry in the file

--- Implicit: No entry within the file, but assuming the Oracle default values

types of initialization parameter file:

--- Static parameter file, PFILE,commonly referred to as initSID.ora

--- Persistent parameter file, SPFILE,commonly referred to as spfileSID.ora

[@more@]

Parameter File Contents

--- A list of instance parameters

--- The name of the database the instance is associated with

--- Allocations for memory structures of the System Global Area (SGA)

--- What to do with filled online redo log files

--- The names and locations of control files

--- Information on undo segments

PFILE : initSID.ora

--- a text file that can be modified with an operating system editor.

--- Modifications to the file are made manually.

--- Changes to the file take effect on the next startup.

--- Its default location is $ORACLE_HOME/dbs.

Rules for Specifying Parameters in PFILE:

--- Specify the values in the following format: keyword=value.

--- All parameters are optional.

--- Parameters can be specified in any order.

--- Comment lines begin with the # symbol.

--- Multiple values are enclosed in parentheses and separated by commas.

--- Enclose parameters in double quotation marks to include character literals.

--- Additional files can be included with the keyword IFILE.

--- If case is significant for the operating system, then it is also significant in filenames.

--- The server has a default value for each parameter. This value may be operating system dependent, depending on the parameter.

SPFILE : spfileSID.ora:

--- Binary file with the ability to make changes persistent across shutdown and startup

--- Maintained by the Oracle server

--- Records parameter value changes made with the ALTER SYSTEM command

--- Can specify whether the change being made is temporary or persistent

--- Values can be deleted or reset to allow an instance to revert to the default value

eg:ALTER SYSTEM SET undo_tablespace = 'UNDO2';

Change parameter in spfile

Syntax:ALTER SYSTEM SET parameter=value ;

Create a spfile:

Syntax:CREATE SPFILE [='SPFILE---NAME'] FROM PFILE[='PFILE---NAME']

Where:

--- SPFILE---NAME: Name of the SPFILE to be created: if not specified, the default SPFILE name is assumed.

--- PFILE---NAME: Name of a PFILE, must be available on the server side.

The CREATE SPFILE command requires the SYSDBA role to execute.

Create a pfile:

Syntax:CREATE PFILE [='PFILE---NAME'] FROM SPFILE[='SPFILE---NAME']

The CREATE PFILE command requires the SYSDBA role to execute.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8633028/viewspace-909538/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8633028/viewspace-909538/

int Player::Play(int argc, char* argv[]) { int RetValue=0; try { try { // Parse command line options m_CmdLineParams.Init(); m_CmdLineParams.ParseCommandLine(argc, argv); } catch ( Exc e ) { Log(e, true); Log("", true); Log("Use -? option for help--Exc", true); return -1; } catch (DtOptException e) { Log(e, true); Log("", true); Log("Use -? option for help--DtOptException", true); return -1; } catch ( ... ) { return -1; } if ( m_CmdLineParams.m_ShowHelp ) { // Disable silent mo de m_CmdLineParams.m_SilentMode = false; ShowHelp(); return RetValue; } //-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Print start message -.-.-.-.-.-.-.-.-.-.-.-.-.-.-. LogF("DtPlay player V%d.%d.%d (c) 2000-2019 DekTec Digital Video B.V.\n", DTPLAY_VERSION_MAJOR, DTPLAY_VERSION_MINOR, DTPLAY_VERSION_BUGFIX); LogF("DTAPI compile version: V%d.%d.%d.%d\n", DTAPI_VERSION_MAJOR, DTAPI_VERSION_MINOR, DTAPI_VERSION_BUGFIX, DTAPI_VERSION_BUILD); int Maj=-1,Min=-1,BugFix=-1,Build=-1; DtapiGetVersion(Maj,Min,BugFix,Build); LogF("DTAPI link version: V%d.%d.%d.%d\n", Maj, Min, BugFix, Build); //.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Open the play file -.-.-.-.-.-.-.-.-.-.-.-.-.-.-. // Try to open a file for reading if (!m_CmdLineParams.m_FileName.empty()) { // 仅当文件名非空时尝试打开 #ifdef WINBUILD LogF("open ts file %ls\n", m_CmdLineParams.m_FileName.c_str()); m_pFile = _wfopen(m_CmdLineParams.m_FileName.c_str(), L"rb"); #else string StrFilename(m_CmdLineParams.m_FileName.begin(), m_CmdLineParams.m_FileName.end()); m_pFile = fopen(StrFilename.c_str(), "rb"); #endif if (m_pFile == NULL) throw Exc(c_ErrFailToOpenFile, m_CmdLineParams.m_FileName.c_str()); //.-.-.-.-.-.-.-.-.-.-.-.-.-.- Auto detect SDI format -.-.-.-.-.-.-.-.-.-.-.-.-.-. if (m_CmdLineParams.m_PlayDtSdiFile) AutoDetectSdiFormat(); else if (m_CmdLineParams.m_PlayPcapFile) DetectPcapFormat(); } //-.-.-.-.-.-.-.-.-.-.-.-.- Attach to the output channel -.-.-.-.-.-.-.-.-.-.-.-.- AttachToOutput(); //-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Final initialisation -.-.-.-.-.-.-.-.-.-.-.-.-.-.- // Init output InitOutput(); // Create our transfer buffer m_pBuf = new char [c_BufSize]; //.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Start playing -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- // Print start info DisplayPlayInfo(); // Loop file if (m_pFile != NULL) { //2025-8-20 modified LoopFile(); } else { 新建接收线程和输入速率计算线程 } } catch( Exc e ) { Log(e, true); RetValue = -1; } #ifdef WINBUILD WSACleanup(); // 清理Winsock #endif // Detach from channel and device m_DtOutp.SetTxControl(DTAPI_TXCTRL_IDLE); m_DtOutp.Detach(DTAPI_INSTANT_DETACH); m_DtDvc.Detach(); // Free our buffer if ( m_pBuf != NULL ) { delete [] m_pBuf; m_pBuf = NULL; } // donot forget to close our file if ( m_pFile != NULL ) { ::fclose(m_pFile); m_pFile = NULL; } return RetValue; },基于现有这段代码中的情况,现需要实现当m_pFile != NULL时执行LoopFile();,否则(else)就新建一个UDP接收线程和输入速率计算线程,通过UDP接收来自组播地址{地址:"236.78.78.84", 端口:59000}的节目流数据,将接收到的数据存起来(比如calcbuffer或者calc vector,或者calc 队列,具体选择哪种需要综合考虑效率以及开销,是否容易溢出等)。在计算输入速率的线程里,需要把接收线程里寻下来的数据全都给DTMP2API::EstimateTsRate(UInt8* pBuf, Int BufSize)的 pBuf来计算输入速率,第一次计算出来速率后,之后每隔五秒计算一次,DTMP2API::EstimateTsRate(UInt8* pBuf, Int BufSize)此函数的实现已有,无需生成,并且要能实现在运行的过程中如果检测到有任意按键摁下,就停止程序
09-06
【复现】并_离网风光互补制氢合成氨系统容量-调度优化分析(Python代码实现)内容概要:本文围绕“并_离网风光互补制氢合成氨系统容量-调度优化分析”的主题,提供了基于Python代码实现的技术研究与复现方法。通过构建风能、太阳能互补的可再生能源系统模型,结合电解水制氢与合成氨工艺流程,对系统的容量配置与运行调度进行联合优化分析。利用优化算法求解系统在不同运行模式下的最优容量配比和调度策略,兼顾经济性、能效性和稳定性,适用于并网与离网两种场景。文中强调通过代码实践完成系统建模、约束设定、目标函数设计及求解过程,帮助读者掌握综合能源系统优化的核心方法。; 适合人群:具备一定Python编程基础和能源系统背景的研究生、科研人员及工程技术人员,尤其适合从事可再生能源、氢能、综合能源系统优化等相关领域的从业者;; 使用场景及目标:①用于教学与科研中对风光制氢合成氨系统的建模与优化训练;②支撑实际项目中对多能互补系统容量规划与调度策略的设计与验证;③帮助理解优化算法在能源系统中的应用逻辑与实现路径;; 阅读建议:建议读者结合文中提供的Python代码进行逐模块调试与运行,配合文档说明深入理解模型构建细节,重点关注目标函数设计、约束条件设置及求解器调用方式,同时可对比Matlab版本实现以拓宽工具应用视野。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值